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

Object -> unicode mapper

Project Description
obj2uni
=======

This packages defines the single function, `obj2uni`, which returns
Unicode strings for sequences of any objects. Each string
has the length equal to the length of the corresponding sequence.
Multiple sequences share the same character mapping.
This function can be useful for other packages which operate on strings faster,
e.g. for computing Levenshtein distance.

```Python
>>> from obj2uni import obj2uni
>>> obj2uni((1, 2, 3, None), ('test', 'ham', 'spam', 3.14159))

(('\x01\x02\x03\x00', '\x07\x05\x06\x04'),
{'\x00': None,
'\x01': 1,
'\x02': 2,
'\x03': 3,
'\x04': 3.14159,
'\x05': 'ham',
'\x06': 'spam',
'\x07': 'test'})
```

Released under MIT license. Copyright © 2016 Mail.Ru Group LLC.
Release History

Release History

This version
History Node

1.0

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
obj2uni-1.0.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Apr 14, 2016

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