githubdata
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: githubdata | ||
| Version: 13.0.0 | ||
| Version: 13.1.0 | ||
| Summary: A simple tool to get the lastest version of a dataset in a Github repository | ||
@@ -5,0 +5,0 @@ Project-URL: Homepage, https://github.com/imahdimir/githubdata |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "githubdata" | ||
| version = "13.0.0" | ||
| version = "13.1.0" | ||
| authors = [{ name = "Mahdi Mir", email = "imahdimir@gmail.com" }] | ||
@@ -10,0 +10,0 @@ description = "A simple tool to get the lastest version of a dataset in a Github repository" |
@@ -8,2 +8,3 @@ """ | ||
| import pandas as pd | ||
| from persiantools.jdatetime import JalaliDateTime | ||
@@ -13,4 +14,8 @@ | ||
| def get_data_from_github(github_url) : | ||
| def get_data_from_github_without_double_clone(github_url , remove_cache = False | ||
| ) -> pd.DataFrame : | ||
| """ | ||
| gets data from a GitHub data repo, without cloning it twice. | ||
| if it is already cloned, it will read the data from the local path. | ||
| :param: github_url | ||
@@ -21,3 +26,6 @@ :return: pandas.DataFrame | ||
| df = gd.read_data() | ||
| gd.rmdir() | ||
| if remove_cache : | ||
| gd.rmdir() | ||
| return df | ||
@@ -24,0 +32,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
13074
2.29%128
4.07%