Skip to main content

Python client for Deform.io

Project description

Python client for [Deform.io](https://deform.io).

[Client documentation](http://deformio.github.io/python-deform/).

## Tests

Install tox:

$ pip install tox

For running tests you need to provide all required ENV variables. For example next command will fail:

$ tox ValueError: You should provide “DEFORM_HOST” environ for settings

You can send variables with command:

$ DEFORM_HOST=‘“deform.chib.me”’ tox

The more convenient way would be to create a .test_config file a save data there. This file is ignored by git and won’t be commeted.

$ cat .test_config DEFORM_HOST=‘“deform.chib.me”’ DEFORM_EMAIL=’”email@example.ru”’ DEFORM_PASSWORD=‘“hello”’ …

You can run tests with config from file like this:

$ eval $(cat .test_config) tox

All config values must be specified with JSON types.

Running tests just for one environment:

$ eval $(cat .test_config) tox -e py3

Running tests from directory:

$ eval $(cat .test_config) tox -e py3 – tests.unit.client

Running the specific test case:

$ eval $(cat .test_config) tox -e py3 – tests.unit.client.tests:ClientTest__login

### Codestyle

Checking for pep:

$ tox -e flake8

Checking for imports:

$ tox -e isort

If you have any problems with imports just run automatic manual fix:

$ tox -e isort-fix

### Documentation

Documentation is generated by [http://www.mkdocs.org/](http://www.mkdocs.org/)

$ pip install -r requirements/docs.txt $ invoke build-docs

For development:

$ invoke serve-docs

## Publishing new releases

Increment version in pydeform/__init__.py. For example:

__version__ = ‘0.0.2’ # from 0.0.1

Run tests.

Commit changes with message “Version 0.0.2”

Publish to pypi:

$ python setup.py publish

Add new tag version for commit:

$ git tag 0.0.2

Push to master with tags:

$ git push origin master –tags

## Todo:

  • Python 3 support

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

python-deform-0.0.3.tar.gz (18.2 kB view details)

Uploaded Source

File details

Details for the file python-deform-0.0.3.tar.gz.

File metadata

File hashes

Hashes for python-deform-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a96d72a7c57106d0e9cd1d8b4e29d0077f7589f6012daa724c4405d77a98ae30
MD5 5b9ffd305e59addad550211cf7f8f5fa
BLAKE2b-256 26a883f8a587caf7e514a89ea936dd4dcfed62972bee5cbe77fe4b6b0b14509f

See more details on using hashes here.

Supported by

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