A simple tool to get last/full version of a github repository and committing back to it
Project description
A simple tool to get last/full version of a github repository and committing back to it.
Install
pip install githubdata
Quick Start
>>> from githubdata import GithubData
>>> url = 'https://github.com/imahdimir/d-uniq-BaseTickers'
>>> rp = GithubData(url)
>>> rp.clone()
>>> fp = rp.data_filepath
>>> print(fp)
'd-uniq-BaseTickers/data.xlsx' # This the relative path of downloaded dataset
You can easily use the fp
to read the dataset quickly. like:
import pandas as pd
df = pd.read_excel(fp)
To delete everything downloaded
rp.rmdir()
More Details
rp.clone()
- Every time excecuted, it re-downloads last version of data.
rp.data_filepath
- This attribute contains the relative path of the downloaded dataset.
Contributions
The project is open to any contribution.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
githubdata-3.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for githubdata-3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1327b749fd9e2e263529272fc23cc984dd38d19b308d8ab1a9b7e44b39676c5b |
|
MD5 | f91e633aeb91576e059e7700048436ec |
|
BLAKE2b-256 | 8e5158e892f4806560ad279431717492162951188aecf4c5762eac695c384289 |