Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxi_petzi-1.1.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

taxi_petzi-1.1.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page