Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaoyingz/ghs
Storage csv file in github repository.
https://github.com/chaoyingz/ghs
csv github pandas python
Last synced: about 1 month ago
JSON representation
Storage csv file in github repository.
- Host: GitHub
- URL: https://github.com/chaoyingz/ghs
- Owner: Chaoyingz
- Created: 2023-04-29T07:29:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T15:30:28.000Z (over 1 year ago)
- Last Synced: 2024-10-06T09:43:47.299Z (3 months ago)
- Topics: csv, github, pandas, python
- Language: Python
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GHS
Storage csv file in github repository.
## Installation
```bash
pip install pyghs
```## Usage
```python
from ghs import GHS
import pandas as pddf = 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
```