Name | pyghs JSON |
Version |
0.2.3
JSON |
| download |
home_page | |
Summary | Storage csv file in github repository. |
upload_time | 2023-05-07 15:30:51 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | MIT |
keywords |
github
storage
pandas
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# GHS
Storage csv file in github repository.
## Installation
```bash
pip install pyghs
```
## Usage
```python
from ghs import GHS
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
# Create a GHS instance
ghs = GHS("YOUR_GITHUB_REPOSITORY", "YOUR_GITHUB_TOKEN")
# Create a csv file in github repository
ghs.create("test.csv", df)
# Get a csv file from github repository
df = ghs.get("test.csv")
print(df)
```
This prints:
```bash
a b
0 1 4
1 2 5
2 3 6
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pyghs",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "github,storage,pandas",
"author": "",
"author_email": "Chaoying <chaoying2022@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6f/ee/2067498270c86f7d135b8f43473d504250b1ce1886ccb7e7c63d31b2a6ce/pyghs-0.2.3.tar.gz",
"platform": null,
"description": "# GHS\n\nStorage csv file in github repository.\n\n## Installation\n\n```bash\npip install pyghs\n```\n\n## Usage\n\n```python\nfrom ghs import GHS\nimport pandas as pd\n\ndf = pd.DataFrame({\"a\": [1, 2, 3], \"b\": [4, 5, 6]})\n\n# Create a GHS instance\nghs = GHS(\"YOUR_GITHUB_REPOSITORY\", \"YOUR_GITHUB_TOKEN\")\n# Create a csv file in github repository\nghs.create(\"test.csv\", df)\n\n# Get a csv file from github repository\ndf = ghs.get(\"test.csv\")\nprint(df)\n```\n\nThis prints:\n\n```bash\n a b\n0 1 4\n1 2 5\n2 3 6\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Storage csv file in github repository.",
"version": "0.2.3",
"project_urls": null,
"split_keywords": [
"github",
"storage",
"pandas"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "226aab76ebda86f5ecde46bbbfcd2c53ed927de92c9d1203d400bfa930ffc242",
"md5": "27eab08a2941ca123d1b5ca118091463",
"sha256": "7883cd6ed3444df07dc40919c2a3765beee100455cdbbc4e7c26d1f601c2c223"
},
"downloads": -1,
"filename": "pyghs-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "27eab08a2941ca123d1b5ca118091463",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4711,
"upload_time": "2023-05-07T15:30:49",
"upload_time_iso_8601": "2023-05-07T15:30:49.352879Z",
"url": "https://files.pythonhosted.org/packages/22/6a/ab76ebda86f5ecde46bbbfcd2c53ed927de92c9d1203d400bfa930ffc242/pyghs-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6fee2067498270c86f7d135b8f43473d504250b1ce1886ccb7e7c63d31b2a6ce",
"md5": "0dbf5abc23b30d35d843b7cdcd0ab2af",
"sha256": "ac51cf83321f5f7b3651dbfeb62c663547de6deafbc4288cbb4ab6d567e5a985"
},
"downloads": -1,
"filename": "pyghs-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "0dbf5abc23b30d35d843b7cdcd0ab2af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3924,
"upload_time": "2023-05-07T15:30:51",
"upload_time_iso_8601": "2023-05-07T15:30:51.637379Z",
"url": "https://files.pythonhosted.org/packages/6f/ee/2067498270c86f7d135b8f43473d504250b1ce1886ccb7e7c63d31b2a6ce/pyghs-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-07 15:30:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyghs"
}