The Python client library for the Tuneup Technology App.

Overview

Tuneup Technology App Python Client Library

The Python client library for the Tuneup Technology App.

Build Status Coverage Status PyPi Licence

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

# Install client library
pip3 install tuneuptechnology

# Install locally
make install

# Get Makefile help
make help

Example

import os

import tuneuptechnology

API_EMAIL = os.getenv('API_EMAIL')
API_KEY = os.getenv('API_KEY')

client = tuneuptechnology.Client(API_EMAIL, API_KEY)

customer = client.Customers.create(
    {
        'firstname': 'Jake',
        'lastname': 'Peralta',
        'email': '[email protected]',
        'phone': '8015551234',
        'user_id': 1,
        'notes': 'Believes he is a good detective.',
        'location_id': 2,
    }
)

print(customer)

Other examples can be found in the /examples directory. Alter according to your needs.

Usage

[email protected] API_KEY=123... venv/bin/python create_customer.py

Documentation

Up-to-date API documentation can be found here.

Development

# Lint the project
make lint

# Run tests
[email protected] API_KEY=123... make test

# Run test coverage
[email protected] API_KEY=123... make coverage

Releasing

As a separate PR from the feature/bug PR:

  1. Update the Version constant in client.py & setup.py
  2. Update CHANGELOG
  3. Create a GitHub tag with proper Python version semantics (eg: v1.0.0)
  4. Publish to PyPI
You might also like...
Python Client Library to interface with the Phoenix Realtime Server

supabase-realtime-client Python Client Library to interface with the Phoenix Realtime Server This is a fork of the supabase community realtime client

Python client library for Bigcommerce API

Bigcommerce API Python Client Wrapper over the requests library for communicating with the Bigcommerce v2 API. Install with pip install bigcommerce or

Backlog API v2 Client Library for Python
Backlog API v2 Client Library for Python

BacklogPy - Backlog API v2 Client Library for Python BacklogPy is Backlog API v2 Client Library for Python 2/3 Install You can install the client libr

Thread-safe Python RabbitMQ Client & Management library

AMQPStorm Thread-safe Python RabbitMQ Client & Management library. Introduction AMQPStorm is a library designed to be consistent, stable and thread-sa

Python API client library for phpIPAM installations

phpypam: Python API client library for phpIPAM installation As we started to develop phpipam-ansible-modules we used an existing python library for ph

Osmopy - osmo python client library

osmopy Version 0.0.2 Tools for Osmosis wallet management and offline transaction

PHION's client-side core python library

PHION-core PHION's client-side core python library. This library is not meant to be used directly by users. If you want to install phion please use th

An unofficial client library for Google Music.

gmusicapi: an unofficial API for Google Play Music gmusicapi allows control of Google Music with Python. from gmusicapi import Mobileclient api = Mob

An unofficial client library for Google Music.

gmusicapi: an unofficial API for Google Play Music gmusicapi allows control of Google Music with Python. from gmusicapi import Mobileclient api = Mob

Comments
  • v3.0.0 - complete overhaul for v2 API

    v3.0.0 - complete overhaul for v2 API

    • Updates entire library to be compliant with the new v2 API (endpoints, HTTP methods, etc)
    • Build requests via a Client now providing your email and api_key
    • Added optional base_url and timeout options to client
    • Module names are now plural
    • The Client now checks if an email and api_key is provided and raises an error if not
    • Removed utils module (pretty print)
    • Added unit tests (closes #1)
    opened by Justintime50 0
  • Updated name scheme to match other CL's

    Updated name scheme to match other CL's

    Updated the bad naming scheme to match the other CL's and expected names.

    This is a breaking change and as such, once merge, will need a MAJOR version bump.

    opened by Justintime50 0
Releases(v3.0.0)
  • v3.0.0(Jun 22, 2021)

    • Updates entire library to be compliant with the new v2 API (endpoints, HTTP methods, etc)
    • Build requests via a Client now providing your email and api_key
    • Added optional base_url and timeout options to client
    • Module names are now plural
    • The Client now checks if an email and api_key is provided and raises an error if not
    • Removed utils module (pretty print)
    • Added unit tests (closes #1)
    Source code(tar.gz)
    Source code(zip)
  • v2.2.0(Feb 21, 2021)

    • Adds timeout on HTTP requests
    • Adds try/except block arround HTTP requests
    • Changes internal function name from response to _make_http_request
    Source code(tar.gz)
    Source code(zip)
  • v2.1.0(Feb 6, 2021)

    • Changed all classmethods to staticmethods
    • Added user-agent to requests (closes #4)
    • Linting and formatting changes
    • Switched from Pylint to Flake8
    • Added GitHub Actions
    Source code(tar.gz)
    Source code(zip)
  • v2.0.0(Apr 17, 2020)

  • v1.0.0(Apr 5, 2020)

Owner
Tuneup Technology
The dev org for Tuneup Technology.
Tuneup Technology
Raphtory-client - The python client for the Raphtory project

Raphtory Client This is the python client for the Raphtory project Install via p

Raphtory 5 Apr 28, 2022
Drcom-pt-client - Drcom Pt version client with refresh timer

drcom-pt-client Drcom Pt version client with refresh timer Dr.com Pt版本客户端 可用于网页认

null 4 Nov 16, 2022
Cdk-python-crud-app - CDK Python CRUD App

Welcome to your CDK Python project! You should explore the contents of this proj

Shapon Sheikh 1 Jan 12, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 8, 2023
The official Python client library for the Kite Connect trading APIs

The Kite Connect API Python client - v3 The official Python client for communicating with the Kite Connect API. Kite Connect is a set of REST-like API

Zerodha Technology 756 Jan 6, 2023
Unirest in Python: Simplified, lightweight HTTP client library.

Unirest for Python Unirest is a set of lightweight HTTP libraries available in multiple languages, built and maintained by Mashape, who also maintain

Kong 432 Dec 21, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Dec 31, 2022
Pure Python 3 MTProto API Telegram client library, for bots too!

Telethon ⭐️ Thanks everyone who has starred the project, it means a lot! Telethon is an asyncio Python 3 MTProto library to interact with Telegram's A

LonamiWebs 7.3k Jan 1, 2023
Python client library for Google Maps API Web Services

Python Client for Google Maps Services Description Use Python? Want to geocode something? Looking for directions? Maybe matrices of directions? This l

Google Maps 3.8k Jan 1, 2023
Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Harun Mbaabu Mwenda 46 Sep 1, 2022