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'

>>> repo = GithubData(url) 
>>> repo.clone()

>>> fp = repo.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

repo.rmdir()

More Details

repo.clone()

  • Every time excecuted, it re-downloads last version of data.

repo.data_filepath

  • This attribute contains the relative path of the downloaded dataset.

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.3.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

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