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.
Quick Start
>>> from githubdata import GithubDataRepo
>>> url = 'https://github.com/imahdimir/d-uniq-BaseTickers'
>>> repo = GithubDataRepo(url)
>>> repo.clone_overwrite_last_version()
>>> data_suffix = '.xlsx'
>>> fpns = repo.return_sorted_list_of_fpns_with_the_suffix(data_suffix)
>>> print(fpns)
[PosixPath('d-uniq-BaseTickers/data.xlsx')]
To delete the directory downloaded
>>> repo.rmdir()
More Details
repo.clone_overwrite_last_version()
- Every time excecuted, it re-downloads last version of data.
repo.return_sorted_list_of_fpns_with_the_suffix('.xlsx')
- Returns a sorted list containing filepaths downloaded with a given suffix (type).
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.2.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for githubdata-2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82b3191b543017d818efe7ae9c7dfacd3c985a4a9c19be6fb337431ddddc8e0e |
|
MD5 | 64ca4962383a159a1afc79b199a94216 |
|
BLAKE2b-256 | 8c7654c25fc5ef952b8f78e56ef4bba2ae270a0d50a1a78870ec8edecb998839 |