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-2.11.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for githubdata-2.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab684855438b7f07575192dd826bfde3c2807dbe9182ce6f66ab3bf607495e2a |
|
MD5 | 6a9c88e8a8ac5cbd2f04935cd77faf6c |
|
BLAKE2b-256 | 6ef900ef601fbf7d1f3a510ce744df35cb2b44c11e69353fb18d89f257766345 |