Wrapper package for using the moco api interface
Project description
moco-wrapper
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
Running the tests
Tests can be run by executing the tox commend inside the root direcotry of this project
` > tox `
This command will run all the tests.
If you want to only run a specific set of tests, they are structured in the follwing 3 Folders.
production (need configuration to run)
integration (not implemented)
unit
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](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.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
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
Built Distribution
Hashes for moco_wrapper-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aaa986906f35f7e9904c3ab48ecf7cde4e725d72cd30d8c2e7cc518f731d813 |
|
MD5 | 42db75e65615b3a07a509f06b36d87c3 |
|
BLAKE2b-256 | 788dd29aa86f058151c3ee310b3774aefe8e1a2287d4061b3702b55768b9df72 |