Skip to main content

Colony Print Infra-structure

Project description

Colony Print Infra-structure

Small web app for printing Colony-based documents.

This project includes two main components:

  • The Web App end-point that provides XML to Binie conversion colony_print.controllers
  • The structure conversion infra-structure (Visitors, AST, etc.) colony_print.printing

Features

Binie Specification

For a detailed understanding of the Binie file format used in this project, refer to the Binie File Format Specification. This document outlines the structure and organization of the Binie file format, which is essential for developing compatible applications and tools.

XMPL Specification

The XML Markup Language for Printing (XMPL) is integral to our document processing pipeline. For an in-depth understanding of the XMPL structure and its seamless convertibility to Binie, see the XMPL File Format Specification.

Installation

Pre-requisites

apt-get install gcc python-dev
pip install --upgrade appier netius pillow reportlab

Run Server

pip install colony_print
python -m colony_print.main

Run Node

pip install colony_print
BASE_URL=$BASE_URL \
SECRET_KEY=$SECRET_KEY \
NODE_ID=$NODE_ID \
NODE_NAME=$NODE_NAME \
NODE_LOCATION=$NODE_LOCATION \
python -m colony_print.node

Fonts

To be able to use new fonts (other than the ones provided by the system), one must install them into the /usr/share/fonts/truetype directory so they are exposed and ready to be used by the PDF generation infra-structure. For example, Calibri is one type of font that should be exported to a UNIX machine as many colony-generated documents use it.

Development

To run a localhost development server, use the following commands:

PORT=8686 \
PYTHONPATH=$BASE_PATH/colony_print/src python \
$BASE_PATH/colony_print/src/colony_print/main.py

License

Colony Print Infra-structure is currently licensed under the Apache License, Version 2.0.

Build Automation

Build Status Coverage Status PyPi Status License

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

colony-print-0.3.2.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

colony_print-0.3.2-py2.py3-none-any.whl (51.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file colony-print-0.3.2.tar.gz.

File metadata

  • Download URL: colony-print-0.3.2.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for colony-print-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6596e199789fbf537c67b12003038bc5cd424a00527453b47d8455b80ba320a9
MD5 1fe61ba95826ec99618cd8ed894962ea
BLAKE2b-256 9f221b58cc6717988d56b3b023481e202520a982645c8d43a74a1c4a8c740f71

See more details on using hashes here.

File details

Details for the file colony_print-0.3.2-py2.py3-none-any.whl.

File metadata

  • Download URL: colony_print-0.3.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for colony_print-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 254d721b99c6bb1ebc0ac0e41a8c487dbb3ab8a2f5e16ed5e95dc9201c2360c5
MD5 d084d36227925a2c4097beb08c81debe
BLAKE2b-256 517330ad53836fe64ae48fe8f24eb16d9f4e59373bdad1156843fff1c0b9829b

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