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.

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


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)

Uploaded Source

Built Distribution

githubdata-3.0-py2.py3-none-any.whl (5.1 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