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!

ZTFY utility used to generate sequences

Project Description


ZTFY.sequence is a small package used to set sequential identifiers on selected persistent contents.

The SequentialIntIds utility is based on zope.intid.IntIds utility, but overrides a few methods to be able to define these sequential IDs.

Classes for which we want to get these sequential IDs have to implement the ISequentialIntIdTarget marker interface. They can also implement two attributes, which allows to define the name of the sequence to use and a prefix.

This prefix, which can also be defined on the utility, is used to define an ID in hexadecimal form, as for example ‘LIB-IMG-000012ae7c’, based on the ‘main’ numeric ID.

Sequence utility

Sequences are handled by a utility implementing ISequentialIntIds interface and registered for that interface.

You can set two optional parameters on this utility, to define the first hexadecimal ID prefix as well as the length of hexadecimal ID (not including prefix).


Thierry Florac <>, Author



  • force unicode on hexadecimal OID value
  • added TAL “sequence:” namespace package


  • package created using templer [Thierry Florac]
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ztfy.sequence-0.1.1-py2.7.egg (25.5 kB) Copy SHA256 Checksum SHA256 2.7 Egg Dec 19, 2012
ztfy.sequence-0.1.1.tar.gz (9.3 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 2012

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting