Skip to main content

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


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)

Uploaded Source

Built Distribution

githubdata-2.2-py2.py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page