Skip to main content

E-Deposit's AMQP definitions and common classes/patterns.

Project description

Introduction

This package provides functions to (de)serialize namedtuple to JSON.

Full module documentation is hosted at the readthedocs.

Installation

Module is hosted at PYPI, and can be easily installed using PIP:

pip install edeposit.amqp.serializers

Source codes can be found at GitHub: https://github.com/jstavel/edeposit.amqp.serializers.

Content

So far, module provides only one submodule:

edeposit.amqp.serializers.serializers

Serialization/deserialization functions to serialize() and deserialize() namedtuples to the JSON and back. Module needs to be initialized first by calling init_globals(globals()).

All three functions are imported in __init__.py, so you don’t need to call edeposit.amqp.serializers.serializers - just edeposit.amqp.serializers will do.

Acceptance tests

Robot Framework is used to test the sources, which are stored in src/edeposit/amqp/serializers/tests directory.

You can run them manually (from the root of the package):

$ pybot -W 80 --pythonpath src/edeposit/amqp/serializers/tests/:src src/edeposit/amqp/serializers/tests/

Or continuously using nosier:

$ nosier -p src -b 'export' "pybot -W 80 --pythonpath src/edeposit/amqp/serializers/tests/ --pythonpath src src/edeposit/amqp/serializers/tests/"

Contributors

Changelog

1.1.0

  • Removed init_globals(). Globals are now passed as parameter to deserialize(). This was necessary to cover changes in variables during runtime.

1.0.0

  • Added documentation.

  • Readthedocs now automatically documents the project.

  • Added iiOfAny().

0.1 (unreleased)

  • Package created.

  • Added package test.

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

edeposit.amqp.serializers-1.1.0.tar.gz (97.2 kB view details)

Uploaded Source

File details

Details for the file edeposit.amqp.serializers-1.1.0.tar.gz.

File metadata

File hashes

Hashes for edeposit.amqp.serializers-1.1.0.tar.gz
Algorithm Hash digest
SHA256 836470077b93132a3224a06efaacbed13c957a481b2d906ffa48e6a3cb60472c
MD5 7e892104106a86ef39d099e3f469f6de
BLAKE2b-256 e56fd01cc044cf73b3ad692dbaac2e6d1f071d320b9628144b034aed9acbde74

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