semvec/pypi-packages huggingface dataset:
sophisthse 0.1.1
SophistHSE package provides methods to access timeseries data from sophist.hse.ru using Python.
Requires Python: >=3.8

[![Python package](https://github.com/AlekseiPrishchepo/pysophisthse/actions/workflows/python-package.yml/badge.svg)](https://github.com/AlekseiPrishchepo/pysophisthse/actions/workflows/python-package.yml)
[![Upload Python Package](https://github.com/AlekseiPrishchepo/pysophisthse/actions/workflows/python-publish.yml/badge.svg)](https://github.com/AlekseiPrishchepo/pysophisthse/actions/workflows/python-publish.yml)

# 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](http://sophist.hse.ru/hse/nindex.shtml). 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

```bash
pip3 install sophisthse
```

## Usage

### Get available tables

```python
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

```python
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
```
vxapi 1.1
virus.exchange wrapper for python
Requires Python: <4,>=3.7

# 💽 VXAPI

**[virus.exchange](https://virus.exchange/)** wrapper for python

# Installation

```
pip install vxapi
```

> [!NOTE]
> Get your API key **[here](https://virus.exchange/users/settings)**

# Usage

```
import vxapi

vx = vxapi.vxapi("ENTER YOUR API KEY")
sample = vx.get_sample("9f7b4bd7f9b3dff55e97516a19905cc6af88bae1817f1ad6e5e3e2ca7737f3dc")

print(sample.md5)
> ffdceadfc3973b02f15c0106122c7490
print(sample.sha256)
> 9f7b4bd7f9b3dff55e97516a19905cc6af88bae1817f1ad6e5e3e2ca7737f3dc
print(sample.sha512)
> a33fce3dcb3eb95a638b290757b3a613ca6a125ea324512de40658c62f7a0611775d5d802a6c4d45850c9a25974c2d5f279fd2f6b4ed75d11dc74e8c6f77111a
print(sample.type)
> None
print(sample.size)
> 131072
print(sample.first_seen)
> 2024-03-25 07:20:13+00:00
print(sample.download_link)
> https://s3[.]us-east-1[.]wasabisys[.]com/vxugmwdb/ ...