Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

yelp_encodings

string encodings invented and maintained by yelp

Subscribe to updates I use yelp_encodings


Statistics on yelp_encodings

Number of watchers on Github 8
Number of open issues 1
Main language Python
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit almost 5 years ago
Repo Created over 5 years ago
Repo Last Updated almost 2 years ago
Size 237 KB
Organization / Authoryelp
Contributors3
Page Updated
Do you use yelp_encodings? Leave a review!
View yelp_encodings activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating yelp_encodings for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

yelp_encodings

Build Status

yelp_encodings contains an 'internet' encoding which is appropriate for dealing with poorly encoded bytes coming from internet clients. The internet encoding will always succeed in decoding any bytestring. This is most often useful for logging bad requests.

Installation

For a primer on pip and virtualenv, see the Python Packaging User Guide.

TL;DR: pip install yelp_encodings

Usage

Once you've registered the codec with python, you can use it anywhere in your app.

>>> from yelp_encodings import internet
>>> internet.register()

>>> euro = u''

>>> import json
>>> print json.dumps(dict(
...    utf8=euro.encode('UTF-8'),
...    cp1252=euro.encode('cp1252'),
...    unicode=euro,
... ), indent=4, sort_keys=True, encoding='internet')
{
    "cp1252": "\u20ac", 
    "unicode": "\u20ac", 
    "utf8": "\u20ac"
}

yelp_encodings open issues Ask a question     (View All Issues)
  • over 4 years docstring rot
  • over 5 years Support Python 3
yelp_encodings list of languages used
Other projects in Python