The Python client library for the Tuneup Technology App.
Project description
Tuneup Technology App Python Client Library
The Python client library for the Tuneup Technology App.
This library allows you to interact with the customers, tickets, inventory, and locations objects without needing to do the hard work of binding your calls and data to endpoints. Simply call an action such as Customer.create
and pass some data and let the library do the rest.
Install
pip3 install tuneuptechnology
Example
"""Create a customer record by passing in all required data"""
import os
from dotenv import load_dotenv
import tuneuptechnology
load_dotenv()
API_EMAIL = os.getenv('API_EMAIL')
API_KEY = os.getenv('API_KEY')
CUSTOMER = tuneuptechnology.Customer.create(
data={
'auth': API_EMAIL,
'api_key': API_KEY,
'firstname': 'Jake',
'lastname': 'Peralta',
'email': 'jake@example.com',
'phone': '8015551234',
'user_id': 1,
'notes': 'Believes he is a good detective.',
'location_id': 1,
}
)
tuneuptechnology.Util.pretty_print(CUSTOMER)
Other examples can be found in the /examples
directory. Alter according to your needs.
Usage
API_EMAIL=email@example.com API_KEY=123... python3 create_customer.py
Documentation
Up-to-date API documentation can be found here.
Releasing
As a separate PR from the feature/bug PR:
- Update the Version constant in
client.py
&setup.py
- Update
CHANGELOG
- Create a GitHub tag with proper Python version semantics (eg: v1.0.0)
- Publish to PyPI
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
tuneuptechnology-2.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tuneuptechnology-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acdf9a053e32de438d8c4b383cfe0cfa474814e00a7479054a0383997c04cc9 |
|
MD5 | 94eb252ea63b64a6d2476c24895ef88b |
|
BLAKE2b-256 | 163c9129c0b3e719ff4f92cedf83c4675509f88613ab8f3b6ab997959dc1b545 |