Skip to main content

Wrapper package for using the moco api interface

Project description

moco-wrapper

https://img.shields.io/pypi/v/moco_wrapper.svg https://img.shields.io/travis/sommalia/moco-wrapper.svg

The “moco-wrapper” is a python package that allows for simple access to Mocos API.

Disclaimer (semi-serious)

This project is in no way finished, or polished. I am not responsible for any commercial, financial or emotional damage that may or may not be caused by using this project.

I am also not affiliated with the people behind moco. The package implements the api as described in its readme https://github.com/hundertzehn/mocoapp-api-docs.

API Documentation

API Documentation can be found at here: https://moco-wrapper.readthedocs.io/en/latest/

Running the tests

Tests can be run by executing the tox commend inside the root directory of the project.

$ tox

This command will run all the tests.

Setting up integration tests

For the integration tests 2 environment variables are needed mocotest_apikey and mocotest_domain. Set them like this

$ export mocotest_apikey="this is the api key"
$ export mocotest_domain="testdomain"

License

This project is licensed under the GNU Public License - see the LICENSE file for details

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template. This package tries to imitate the way that the praw-package, for wrapping arount the reddit api, was structured

History

0.6.3 (2020-04-29)

  • Cleanup

  • Fixed example code in documentation

  • Fixed various typos

  • Implemented contact lookup by phone number and term

0.6.2 (2020-03-24)

  • Query strings conversion into lower case

0.6.1 (2020-03-18)

  • Implement support for days parameter in User holidays

  • Implement Purchase Categories

0.6.0 (2020-03-07)

  • Implemented Paging of Listing Models

  • Implemented the creation of fixed price projects

  • Implement Project Payment Schedules for fixed price projects

  • More Documentation and even more code cleanup

0.5.0 (2020-02-29)

  • Implement authentication via email and password (note that the class constructor also changed, if you do not want that continue to ues the previus version (0.4.1))

  • Create readthedocs documentation (see https://moco-wrapper.readthedocs.io)

  • Error Responses are now converted into actual Exceptions that are raised

  • Code Cleanup

0.4.1 (2020-02-24)

  • Implemented impersonation

  • Fixed makefile (make test does work now if you have the required packages installed)

  • Created documentation see (https://moco-wrapper.readthedocs.io/en/latest/)

  • Added named arguments requestor and objector to moco_instance constructor (Setting the requestor via moco.http is no longer possible, user moco.requestor)

  • Removed cli component

0.4.0 (2020-02-19)

  • Finished reworking all the integration tests

  • Prefixed Employment, Holiday and Presense with “User” for clarification

  • Moved duplicated methods id_generator and create_random date into base class

  • Implented additional requestor that only tries once to request the api endpoint (no retrying)

  • Main moco object moved to namespace moco_wrapper.moco

  • Changed author email

0.3.0 (2020-02-17)

  • Create github workflow to automaticly deploy to PyPI

  • Implement an objector to control how the json responses get converted back into python objects (some endpoints return data that contain reserved python keywords, this was implemented to circumvent that)

  • More Tests and more type hinting

  • Write the history of the last versions

  • Change the order of things in this history file

  • Implement offer creation

0.2.3 (2020-02-09)

  • Implement FileResponses for downloading pdf files from api

  • Implement invoice class api changes

  • More tests

0.2.2 (2020-01-12)

  • Start implementing type hinting

  • Switch to support python3 only

  • Remove company delete method, as it is not support by the api

  • More Tests

0.2.1 (2020-01-10)

  • More tests

0.1.0 (2019-09-04)

  • First release on PyPI.

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

moco_wrapper-0.6.3.tar.gz (345.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moco_wrapper-0.6.3-py2.py3-none-any.whl (90.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file moco_wrapper-0.6.3.tar.gz.

File metadata

  • Download URL: moco_wrapper-0.6.3.tar.gz
  • Upload date:
  • Size: 345.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for moco_wrapper-0.6.3.tar.gz
Algorithm Hash digest
SHA256 68446bb0898f26841347e3c7af375807c7a2777942c956a26297c2b85be59aea
MD5 e84dd7a4d029420e7963facef543dacd
BLAKE2b-256 d16d3a50e196c51de609877aa112386fa3e70b1941d0a99c6c7fcf6cbf482e5b

See more details on using hashes here.

File details

Details for the file moco_wrapper-0.6.3-py2.py3-none-any.whl.

File metadata

  • Download URL: moco_wrapper-0.6.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 90.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for moco_wrapper-0.6.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d61f20108a441ea5a9edac2222f0d65a408e0b37831ea9a3acce05ff52c00ce3
MD5 e19387be5053038d188140e611071391
BLAKE2b-256 936e497390c695f62b241448c2b3f0142d4dea28556b4fabffb86c7abc4384a3

See more details on using hashes here.

Supported by

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