The command line client for csvbase
Project description
csvbase-client
The command line client and pandas integration for csvbase.
Status
This tool is very early alpha and suitable for testing.
Semantic versioning is followed, see the changelog.
Usage
Get a table
In pandas:
>>> import pandas as pd
>>> pd.read_csv("csvbase://meripaterson/stock-exchanges")
>>> pd.read_csv("csvbase://meripaterson/stock-exchanges")
csvbase_row_id Continent Country Name MIC Last changed
0 1 Africa Lesotho HYBSE NaN 2019-03-25
1 2 Asia Kazakhstan Astana International Financial Centre AIXK 2018-11-18
2 3 Africa South Africa ZAR X ZARX 2018-11-18
3 4 South America Argentina Bolsas y Mercados Argentinos NaN 2018-04-02
4 5 North America United States of America Delaware Board of Trade NaN 2018-04-02
.. ... ... ... ... ... ...
246 247 North America United States of America Long-Term Stock Exchange LTSE 2020-09-14
247 248 North America United States of America Miami International Securities Exchange MIHI 2020-09-24
248 249 North America United States of America Members' Exchange NaN 2020-09-24
249 250 Africa Zimbabwe Victoria Falls Stock Exchange NaN 2020-11-01
250 251 Asia China Beijing Stock Exchange NaN 2021-12-27
[251 rows x 6 columns]
From the command line
csvbase-client table get meripaterson/stock-exchanges
csvbase_row_id,Continent,Country,Name,MIC,Last changed
1,Africa,Lesotho,HYBSE,,2019-03-25
2,Asia,Kazakhstan,Astana International Financial Centre,AIXK,2018-11-18
3,Africa,South Africa,ZAR X,ZARX,2018-11-18
[ full file omitted ]
Set (aka "upsert") a table:
csvbase-client table set meripaterson/stock-exchanges stock-exchanges.csv
Nothing is output upon success and exit code is 0.
Installing
Executable
Download these from the github release page.
Pip + PyPI
pip install csvbase-client
Docker
docker pull calpaterson/csvbase-client
Then when you run:
# mount your own xdg-cache directory as a volume inside the container
docker run -v "${XDG_CACHE_HOME:-$HOME/.cache}":/root/.cache calpaterson/csvbase-client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
csvbase-client-0.1.0.tar.gz
(26.8 kB
view details)
Built Distribution
File details
Details for the file csvbase-client-0.1.0.tar.gz
.
File metadata
- Download URL: csvbase-client-0.1.0.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97f135ed12a1041ab8c5b0cd5e6a43dcd4d80a8a86fdcd7802cc022678398e0 |
|
MD5 | 10b58d7086235960f66e4d21dded27a7 |
|
BLAKE2b-256 | 25d1b01dba58294e9b1eb7b7ba9421915741e1d2727156d1b21bbe937f979729 |
File details
Details for the file csvbase_client-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: csvbase_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 741d1d9d79da7011ec2108cc18b095c60294af6c53ff8ea49b51a2da662d1506 |
|
MD5 | 738b6b2e1c8c523c7d6f99c342f69811 |
|
BLAKE2b-256 | 94fbbea82b459744dbb564a3e4ef537d4fd871ac9ff12ab3973cfa984e69923a |