Taxi backend for Petzi
Project description
Petzi backend for Taxi
This is the Petzi backend for Taxi. It
exposes the petzi
protocol to push entries to a Google spreadsheet.
Installation
taxi plugin install petzi
Usage
First you’ll need to generate a credentials file to be able to query the spreadsheets Google API. To do so, follow the official guide, and then follow the "Create Desktop application credentials" and download the JSON file with credentials.
Once you have your JSON file with credentials, open your configuration file
using taxi config
, and add a backend using the petzi
protocol for your
backend. Use the path to the credentials JSON file and set the sheet_id
in the
query string. For example:
[backends]
petzi = petzi:///home/sephi/credentials.json?sheet_id=22324_Xg40_x9iWrERPCeIhBFcfHuTWbzxtjrfwvZIQA
Contributing
To setup a development environment, create a virtual environment and run the following command in it:
python3 -m pip install -e .
To use a specific version of Taxi, eg. if you need to also make changes to Taxi, install it in the virtual environment in editable mode:
python3 -m pip install -e /path/to/taxi
To run the tests, install the test requirements, and then run the pytest
command:
python3 -m pip install -r requirements_test.txt
pytest
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
Built Distribution
File details
Details for the file taxi_petzi-1.1.0.tar.gz
.
File metadata
- Download URL: taxi_petzi-1.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bbea90e9ebf9e8274e4c80d25ffb21710fe4c0aa81674f08454c749c95c2f1a |
|
MD5 | 882da13f3f635cae22011935967ca454 |
|
BLAKE2b-256 | 4addac2161f095bb8d2dfb85cc3652552761d461a2f98828d3261cbcd201db93 |
File details
Details for the file taxi_petzi-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: taxi_petzi-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c94bbcea754c697b8b30f2ce487eb815194f7393dc73e84b6b037d914caad3f |
|
MD5 | 271ba34df72049849fbfdfd53b4d9a4f |
|
BLAKE2b-256 | fbb377559f8b89f051270f77f4eb1a0afb0d90027da82b213b425ef397e7eb9f |