All Projects â†’ rafpyprog â†’ Pysgs

rafpyprog / Pysgs

Licence: mit
📈 Python interface for the Brazilian Central Bank's Time Series Management System (SGS)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pysgs

Covid19
JSON time-series of coronavirus cases (confirmed, deaths and recovered) per country - updated daily
Stars: ✭ 1,177 (+1861.67%)
Mutual labels:  dataset, time-series
Motion Sense
MotionSense Dataset for Human Activity and Attribute Recognition ( time-series data generated by smartphone's sensors: accelerometer and gyroscope)
Stars: ✭ 159 (+165%)
Mutual labels:  dataset, time-series
Atsd Use Cases
Axibase Time Series Database: Usage Examples and Research Articles
Stars: ✭ 335 (+458.33%)
Mutual labels:  dataset, time-series
Time Attention
Implementation of RNN for Time Series prediction from the paper https://arxiv.org/abs/1704.02971
Stars: ✭ 52 (-13.33%)
Mutual labels:  time-series
Coarij
Corpus of Annual Reports in Japan
Stars: ✭ 55 (-8.33%)
Mutual labels:  dataset
View Finding Network
A deep ranking network that learns to find good compositions in a photograph.
Stars: ✭ 57 (-5%)
Mutual labels:  dataset
Dream
DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension
Stars: ✭ 60 (+0%)
Mutual labels:  dataset
Soft Dtw Divergences
An implementation of soft-DTW divergences.
Stars: ✭ 52 (-13.33%)
Mutual labels:  time-series
Char Rnn Tensorflow
Multi-layer Recurrent Neural Networks for character-level language models implements by TensorFlow
Stars: ✭ 58 (-3.33%)
Mutual labels:  dataset
Cinemanet
Stars: ✭ 57 (-5%)
Mutual labels:  dataset
Covidnet Ct
COVID-Net Open Source Initiative - Models and Data for COVID-19 Detection in Chest CT
Stars: ✭ 57 (-5%)
Mutual labels:  dataset
Quandl Python
Stars: ✭ 1,076 (+1693.33%)
Mutual labels:  dataset
Animegan
A simple PyTorch Implementation of Generative Adversarial Networks, focusing on anime face drawing.
Stars: ✭ 1,095 (+1725%)
Mutual labels:  dataset
Knyfe
knyfe is a python utility for rapid exploration of datasets.
Stars: ✭ 54 (-10%)
Mutual labels:  dataset
Maskrcnn Modanet
A Mask R-CNN Keras implementation with Modanet annotations on the Paperdoll dataset
Stars: ✭ 59 (-1.67%)
Mutual labels:  dataset
Codar
✅ CODAR is a Framework built using PyTorch to analyze post (Text+Media) and predict Cyber Bullying and offensive content. 💬📷
Stars: ✭ 52 (-13.33%)
Mutual labels:  dataset
Stevens Vlp16 Dataset
This dataset is captured using a Velodyne VLP-16, which is mounted on an UGV - Clearpath Jackal, on Stevens Institute of Technology campus
Stars: ✭ 58 (-3.33%)
Mutual labels:  dataset
Tsanalysis.jl
This package includes basic tools for time series analysis, compatible with incomplete data.
Stars: ✭ 56 (-6.67%)
Mutual labels:  time-series
Fifa Fut Data
Web-scraping script that writes the data of all players from FutHead and FutBin to a CSV file or a DB
Stars: ✭ 55 (-8.33%)
Mutual labels:  dataset
City Scapes Script
Download City Scapes Dataset using this script
Stars: ✭ 57 (-5%)
Mutual labels:  dataset

.. image:: https://img.shields.io/pypi/v/sgs.svg :target: https://pypi.org/project/sgs/

.. image:: https://img.shields.io/pypi/l/sgs.svg :target: https://pypi.org/project/sgs/

.. image:: https://img.shields.io/pypi/pyversions/sgs.svg :target: https://pypi.org/project/sgs/

.. image:: https://img.shields.io/pypi/dm/sgs.svg :target: https://pypi.org/project/sgs/

.. image:: https://img.shields.io/travis/rafpyprog/pysgs.svg :target: https://travis-ci.org/rafpyprog/pySGS/

.. image:: https://img.shields.io/codecov/c/github/rafpyprog/pysgs.svg :target: https://codecov.io/github/rafpyprog/pysgs :alt: codecov.io

.. image:: https://img.shields.io/readthedocs/pysgs.svg :target: https://pysgs.readthedocs.io/en/stable/ :alt: Read the docs!

|pic 1| SGS

.. |pic 1| image:: https://raw.githubusercontent.com/rafpyprog/sgs/master/icon.png

Introduction

This library provides a pure Python interface for the Brazilian Central Bank's Time Series Management System (SGS) <https://www.bcb.gov.br/?sgs>_ api. It works with Python 3.5 and above.

SGS is a service with more than 18,000 time series with economical and financial information. This library is intended to make it easier for Python programmers to use this data in projects of any kind, providing mechanisms to search for, extract and join series.

Quickstart

Access time series data with sgs is very simple

Begin by importing the sgs module:

.. code-block:: python

import sgs

Now, let's try to get a time serie. For this example, let's get the "Interest rate - CDI" time serie in 2018, wich has the code 12.

.. code-block:: python

CDI_CODE = 12
ts = sgs.time_serie(CDI_CODE, start='02/01/2018', end='31/12/2018')

Now, we have a Pandas Series object called ts, with all the data and the index representing the dates.

.. code-block:: python

ts.head()

+------------+----------+ | 2018-01-02 | 0.026444 | +------------+----------+ | 2018-01-03 | 0.026444 | +------------+----------+ | 2018-01-04 | 0.026444 | +------------+----------+ | 2018-01-05 | 0.026444 | +------------+----------+ | 2018-01-08 | 0.026444 | +------------+----------+

Feature Suport

  • Get time serie data with an one-liner using sgs.time_serie
  • Create a dataframe from a list of time series codes with sgs.dataframe
  • Search time series by text or code with sgs.search_ts
  • Get metadata from all the series in a dataframe using sgs.metadata
  • Support to search and metadata in English and Portuguese
  • Automatic retry
  • Automatic cached requests

Installation

To install, simply use pip:

.. code-block:: bash

$ pip install sgs

Documentation

Complete documentation is available at https://pysgs.readthedocs.io/en/stable/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].