=========================
|Build Status| |Latest Version|
Python library for interfacing with the TeamSupport XML API, using `demands <https://github.com/yola/demands>`__.
Free software: MIT license
Features
--------
- Client methods parse response content in order to return LXML Element
objects
- Converting Python dictionaries into XML for POST and PUT calls
- Simple models for Tickets and Actions.
Usage
-----
::
from teamsupport import Ticket, init
init(<org_id>, <auth_key>[, default_ticket_type=<>, default_ticket_status=<>])
# Get ticket with given ID/Number.
ticket = Ticket(<ticket_number_or_ticket_id>)
# Create new ticket.
ticket = Ticket.create(
contact_email, contact_first_name, contact_last_name,
ticket_name, ticket_text)
# Get Ticket description.
descr = ticket.get_description()
# Update ticket description.
ticket.set_decription('New description')
To run integration tests please set correct values in `teamsupport/config.py`
and run: `nosetests integration_tests`
.. |Build Status| image:: https://img.shields.io/travis/yola/teamsupport-python.svg?style=flat-square
:target: https://travis-ci.org/yola/teamsupport-python
.. |Latest Version| image:: https://img.shields.io/pypi/v/teamsupport.svg?style=flat-square
:target: https://warehouse.python.org/project/teamsupport
Running Tests
-------------
Set correct data in teamsupport/config.py
::
nosetests
Changelog
=========
0.5.0 (2018-07-05)
------------------
- Switched to JSON API.
- Set correct ticket status when creating a ticket
- Added ability to modify default ticket type and status when calling
teamsupport.init()
0.4.1 (2018-02-08)
------------------
- Convert input data to str when composing XML.
0.4.0 (2016-10-21)
----------------
- Switched to Demands == 4.0.0
0.3.0 (2015-12-01)
------------------
- Automatically convert DateTime fields to datetime type for Ticket model.
0.2.2 (2015-11-27)
------------------
- Add Ticket.search() and Ticket.update() methods.
0.2.1 (2015-11-27)
------------------
- Fix README.rst formatting.
0.2.0 (2015-11-26)
------------------
- Add `create` class method to the Ticket model; Add `Contact` model;
- Remove User model.
- Change models constructors to not require `client` param.
0.1.3 (2015-09-13)
------------------
- Fix bug in `update_ticket` method
0.1.2 (2015-09-12)
------------------
- Bump version to fix PyPI upload issue
0.1.1 (2015-09-12)
------------------
- Add `User` model and `TeamSupportService.get_user` method.
0.1.0 (2015-09-10)
------------------
- First release on PyPI.
Metadata
Release files for teamsupport 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teamsupport-0.5.0.tar.gz | 8.2 kB | Without provenance | Details for teamsupport-0.5.0.tar.gz |
Release files / teamsupport-0.5.0.tar.gz
| Download URL | teamsupport-0.5.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
198924d1299100bab12128e238d89c15b80909041d2dddffeeebebe39e7bd365
|
|
BLAKE2b-256 checksum How to use checksums |
127c64c249c2efacd400f4fbcb15db19e01cabc03d32bb4a149589651b836ced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for teamsupport 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.