Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description


Declaratively defining then:

  • constructing and
  • serializing

fixed sized records that are composed of:

  • typed
  • fixed sized

fields. This might look e.g. like:

import datetime

import bryl

class MyRecord(bryl.Record):

  a = bryl.Alphanumeric(length=20)

  b = bryl.Date('YYYYMMDD')

  c = bryl.Numeric(length=10, align=bryl.Field.LEFT)

  filler = bryl.Alphanumeric(length=10).reserved()

r = MyRecord(
assert isinstance(r, dict)
print MyRecord.c.offset, MyRecord.c.length
assert MyRecord.load(r.dump()) == r

Some applications:


$ pip install bryl


$ git clone
$ cd bryl
$ mkvirtualenv bryl
(bryl)$ pip install -e .[tests]
(bryl)$ py.test


Now that all tests are passing:

  • Update bryl.__version__ to new {version}.
  • Commit that git commit -am "Release v{version}"
  • Tag it git tag -a v{version} -v  v{version}
  • Push it git push origin --tags

and travis will take it from there.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.6 kB) Copy SHA256 Hash SHA256
Source None Jun 12, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers