Skip to main content

PyStaffo

PyStaffo is a Python wrapper library for the Staffomatic/Easypep API that simplifies many common tasks.

Installation

Either from PyPi:

$ pip install PyStaffo

Or from GitHub:

$ pip install git+https://github.com/perrydunn/PyStaffo

Requirements

  • Python 3 except 3.2 (untested on Python 2)
  • You need a Staffomatic account! A Staffomatic account includes a sub-domain name, and login details as a username and password.

Basic Use

from pystaffo import StaffoAccount

subdomain = '<subdomain>'
username = '<username>'
password = '<password>'

account = StaffoAccount(subdomain=subdomain, username=username, password=password)

# The locations and departments are cached as attributes of the class instance.
# Return dictionary of {'department_name': department_id, ...}:
account.locations

# Return the information of a particular location:
account.get_location('Westway')

Nuts and Bolts

A StaffoAccount() instance has various GET, PUT and POST API calls expressed as methods: these will be added to. So far there are no DELETE calls.

Please refer to the staffo.py for the methods currently available, and feel free to add some more!

Timezone Handling

PyStaffo handles timezones for you, using the timezone detailed in your account. If there are timezone issues you may need to look "under the hood". Please suggest improvements/alternatives.

Contributing

If you would like to see features added or tweaked, please fork, make your changes and open a PR. Feel free to get in touch too.

Aknowledgements

Metadata

Release files for PyStaffo 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyStaffo 0.1.4
File Size Uploaded
PyStaffo-0.1.4.tar.gz 7.4 kB Details

Release files / PyStaffo-0.1.4.tar.gz

Download URL PyStaffo-0.1.4.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fcb5cf272bd15b8163a1b492b88668aaf076b3eccb49de5f7b96c12940bab50b
BLAKE2b-256 checksum
How to use checksums
c36dee02f5a0b2437abc6db98eae9ea6cf59cd5b642b3d8016b6373fb600603a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page