Skip to main content

SophistHSE package provides methods to access timeseries data from sophist.hse.ru using Python.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Python package Upload Python Package

sophisthse

sophisthse is a Python library that is a port of the sophisthse R package. This library allows you to download timeseries of macroeconomic statistics of the Russian Federation from sophist.hse.ru. The data is provided by HSE (Higher School of Economics), which is a leading national research university with expertise in STEM, socio-economic and humanitarian areas, as well as creative industries.

Installation

pip3 install sophisthse

Usage

Get available tables

from sophisthse import sophisthse

sp = sophisthse()
tables = sp.list_tables()
print(tables.head())
                 date            name
0 2020-05-27 15:46:00  AGR_M_I - Copy
1 2024-08-08 09:10:00         AGR_M_I
2 2024-08-08 09:10:00         AGR_Q_I
3 2024-02-11 19:10:00      AGR_Y_DIRI
4 2024-07-26 20:04:00          APCI3N

Get specific table

sp = sophisthse(to_timestamp=True, verbose=False)
df = sp.get_table("AGR_M_I")
print(df.tail())
                               HHI_M_DIRI  HHI_M_DIRI_SA    HHI_M
T                                                                
2018-09-30 23:59:59.999999999       184.1          187.5  31698.0
2018-10-31 23:59:59.999999999       190.9          187.9  32962.0
2018-11-30 23:59:59.999999999       183.3          188.6  32282.0
2018-12-31 23:59:59.999999999       279.1          189.6  47673.0
2019-01-31 23:59:59.999999999       139.6          190.7  24496.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sophisthse-0.0.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sophisthse-0.0.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file sophisthse-0.0.5.tar.gz.

File metadata

  • Download URL: sophisthse-0.0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for sophisthse-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a0aa1254afa25e4600aa72f078b247b93ac9ca445876365c8cb59687a28d1673
MD5 b77f1a9fb9335ffef620948828db56c8
BLAKE2b-256 000cd2b3af2bef911ee11649b3add81e323b6f3a4aafc32106a87b8b8d0b638e

See more details on using hashes here.

File details

Details for the file sophisthse-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: sophisthse-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for sophisthse-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae10f03bd2c292d515e6e62d5f73008ec1834fdac340dc209a39c274286e055
MD5 96ae2b82318ec5975ca090b50014b2e3
BLAKE2b-256 6b0a3c7ac7080c4568d45d34e65da289b6d32abacb33cd71741450b5af9ff945

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page