Skip to main content

efficient python generator to yield all characters for a given encoding.

Project description

unicode-charset


unicode-charset is a package that uses generators to return all characters of a given charset.

The main purpose is to efficently get random characters of specific encodings for testing purposes.

Install

pip install unicode-charset

Usage

from charset import charset

# print the first 10 charset of ansi charset
for c in charset("ansi", n=10, random=False):
    print(c, c.name)
  SPACE
! EXCLAMATION MARK
" QUOTATION MARK
# NUMBER SIGN
$ DOLLAR SIGN
% PERCENT SIGN
& AMPERSAND
' APOSTROPHE
( LEFT PARENTHESIS
) RIGHT PARENTHESIS

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

unicode_charset-0.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unicode_charset-0.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file unicode_charset-0.0.0.tar.gz.

File metadata

  • Download URL: unicode_charset-0.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.2 Windows/10

File hashes

Hashes for unicode_charset-0.0.0.tar.gz
Algorithm Hash digest
SHA256 6024310edea4ceae4b7036b0472f2aaabbeb3b67032e40bb32e6cf586dd3e382
MD5 449089c7405f34ff841a2fb0ef6b0665
BLAKE2b-256 420bfc3689a50f36f063c67c591b504b929232782014c5d9c01e9aedfbc31b1e

See more details on using hashes here.

File details

Details for the file unicode_charset-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: unicode_charset-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.2 Windows/10

File hashes

Hashes for unicode_charset-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01b9cfb7b7358591d1eab0075512d3305052e4942040cb014f66d918fc1ceced
MD5 36b05d7d636de3a4e658472220d60870
BLAKE2b-256 f48ed617e5f83f0417ebb3f59d0b196ab48e98f2619122942181d95f86a52e0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page