Defines EPCIS models and XML parsing.
Project description
QU4RTET EPCIS
=============
.. image:: https://gitlab.com/serial-lab/quartet_epcis/badges/master/pipeline.svg
:target: https://gitlab.com/serial-lab/quartet_epcis/commits/master
.. image:: https://gitlab.com/serial-lab/quartet_epcis/badges/master/coverage.svg
:target: https://gitlab.com/serial-lab/quartet_epcis/pipelines
.. image:: https://badge.fury.io/py/quartet_epcis.svg
:target: https://badge.fury.io/py/quartet_epcis
The quartet_epcis python package is a Django application that
contains the base database models necessary for the support of
EPCIS 1.2 data persistence to an RDBMS. The quartet_epcis.parsing
package contains an EPCIS XML parser that will take an input stream
of XML data and save it to a configured database back-end.
The quartet_epcis.app_models directory contains a set of
Django ORM models that are used to define the database scheme
and store EPCIS data in the database.
Documentation
-------------
Find the latest docs here:
https://serial-lab.gitlab.io/quartet_epcis/
The full (pre-built )documentation is under the docs directory in this project.
Quickstart
----------
Install QU4RTET EPCIS
---------------------
.. code-block:: text
pip install quartet_epcis
Add it to your `INSTALLED_APPS`:
.. code-block:: text
INSTALLED_APPS = (
...
'quartet_epcis',
...
)
Features
--------
* Maintains the database schema for EPCIS 1.2 support.
* Parses EPCIS 1.2 XML streams to the configured backend database system.
* Enforces business rules around decommissioning, commissioning, aggregation,
disaggregation, etc.
Running The Unit Tests
----------------------
.. code-block:: text
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py
History
-------
0.1.0 (2017-12-07)
++++++++++++++++++
* First release on PyPI.
1.0.+ May 4, 2018
++++++++++++++++++
* First production-ready release.
* CI build to auto-deploy tags to PyPI
* Longer fields for document and event ids.
* Changes to CI build.
* Data migration to automatically create EPCIS rule and Step.
1.0.4 June 6, 2018
++++++++++++++++++
* EPCISParsingStep in the steps module was of wrong Type...but was working
anyway. Switched to `rule.Step` from `models.Step`.
* Added on_failure to the EPCISParsingStep to account for the new abstract
method on the base `quartet_capture.rules.Step` class.
1.1 June 21 2018
++++++++++++++++
* Addition of new business parser for EPCIS. The business parser inherits
from the original `quartet_epcis.parsing.parser.QuartetParser` and adds
additional business context processing. The new parser will perform and
track explicit aggregation and dissagregation functions as well as maintain
records of deleted/decommissioned events and check for events containing
EPCs that were never commissioned. Over 800 lines of unit testing code along
with 30 tests now cover just the quartet_epcis parsers and API.
* Fix to aggregation handling with a more aggressive caching strategy- all
entries are cached until the end of processing.
* Added additional ordering to models along with created and modified fields
for the UUID based models.
=============
.. image:: https://gitlab.com/serial-lab/quartet_epcis/badges/master/pipeline.svg
:target: https://gitlab.com/serial-lab/quartet_epcis/commits/master
.. image:: https://gitlab.com/serial-lab/quartet_epcis/badges/master/coverage.svg
:target: https://gitlab.com/serial-lab/quartet_epcis/pipelines
.. image:: https://badge.fury.io/py/quartet_epcis.svg
:target: https://badge.fury.io/py/quartet_epcis
The quartet_epcis python package is a Django application that
contains the base database models necessary for the support of
EPCIS 1.2 data persistence to an RDBMS. The quartet_epcis.parsing
package contains an EPCIS XML parser that will take an input stream
of XML data and save it to a configured database back-end.
The quartet_epcis.app_models directory contains a set of
Django ORM models that are used to define the database scheme
and store EPCIS data in the database.
Documentation
-------------
Find the latest docs here:
https://serial-lab.gitlab.io/quartet_epcis/
The full (pre-built )documentation is under the docs directory in this project.
Quickstart
----------
Install QU4RTET EPCIS
---------------------
.. code-block:: text
pip install quartet_epcis
Add it to your `INSTALLED_APPS`:
.. code-block:: text
INSTALLED_APPS = (
...
'quartet_epcis',
...
)
Features
--------
* Maintains the database schema for EPCIS 1.2 support.
* Parses EPCIS 1.2 XML streams to the configured backend database system.
* Enforces business rules around decommissioning, commissioning, aggregation,
disaggregation, etc.
Running The Unit Tests
----------------------
.. code-block:: text
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py
History
-------
0.1.0 (2017-12-07)
++++++++++++++++++
* First release on PyPI.
1.0.+ May 4, 2018
++++++++++++++++++
* First production-ready release.
* CI build to auto-deploy tags to PyPI
* Longer fields for document and event ids.
* Changes to CI build.
* Data migration to automatically create EPCIS rule and Step.
1.0.4 June 6, 2018
++++++++++++++++++
* EPCISParsingStep in the steps module was of wrong Type...but was working
anyway. Switched to `rule.Step` from `models.Step`.
* Added on_failure to the EPCISParsingStep to account for the new abstract
method on the base `quartet_capture.rules.Step` class.
1.1 June 21 2018
++++++++++++++++
* Addition of new business parser for EPCIS. The business parser inherits
from the original `quartet_epcis.parsing.parser.QuartetParser` and adds
additional business context processing. The new parser will perform and
track explicit aggregation and dissagregation functions as well as maintain
records of deleted/decommissioned events and check for events containing
EPCs that were never commissioned. Over 800 lines of unit testing code along
with 30 tests now cover just the quartet_epcis parsers and API.
* Fix to aggregation handling with a more aggressive caching strategy- all
entries are cached until the end of processing.
* Added additional ordering to models along with created and modified fields
for the UUID based models.
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
quartet_epcis-1.1.5.tar.gz
(47.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quartet_epcis-1.1.5.tar.gz.
File metadata
- Download URL: quartet_epcis-1.1.5.tar.gz
- Upload date:
- Size: 47.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
370c63b0a6e2636e619cdd585076b4332826c9ee5d4bbca417526a70e72c29ea
|
|
| MD5 |
4d4f4481f5db2924fac1f848c55de079
|
|
| BLAKE2b-256 |
b97225ac8d9a84cd4b09a727d580fb1f656cd47abbd3b355f3bbd81cf980f101
|
File details
Details for the file quartet_epcis-1.1.5-py2.py3-none-any.whl.
File metadata
- Download URL: quartet_epcis-1.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1052c9f6db941b16b97386dd63411b5e8db29771d878f7d6889e57f48bdad55
|
|
| MD5 |
f3e9c7e8beb65ccb1a678affc9fa4263
|
|
| BLAKE2b-256 |
74c67873fce31a9a42a977b057f8715b903c4beba43f88a7c6d61206cd6e352f
|