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.9.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for githubdata-2.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fac60fe2249405097fef2b04c1aeabbed87c56895a3d8b41e505d1a9c58070f |
|
MD5 | 2509da951c8fddf89066a80d9a114235 |
|
BLAKE2b-256 | f1e200ca81febe7a1f907e915de85371106ddfb52be4f0ca41b26437fd5ef8fd |