Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Encoder/decoder of an UTF-7 encoded unsigned integer.

>>> utf7.pack_bytes(65535)
b'\xff\xff\x03'
>>> utf7.unpack_bytes(b'\xff\xff\x03')
65535

UTF-7 uint is used for BinaryWriter.Write(String) in Microsoft .NET Framework. Here’s an example of ping-pong between Python server and C# client:

while not socket.closed:
    # recv ping
    ping_size = utf7.unpack_socket(socket)
    ping_data = socket.recv(ping_size)
    assert ping_data == b'ping'
    # send pong
    pong_data = b'pong'
    pong_size = len(pong_data)
    utf7.pack_socket(pong_size, socket)
    socket.send(pong_data)

You can also use _utf7 written in C to take high-speed:

import _utf7 as utf7

Release files for utf7 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for utf7 0.9.3
File Size Uploaded
utf7-0.9.3.tar.gz 20.6 kB Details

Release files / utf7-0.9.3.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL utf7-0.9.3.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f1a46808b4e44cf9208d78ce696f5c3ead44b6fdcc79db00460ec6b6603979dc
BLAKE2b-256 checksum
How to use checksums
5fad39684ee5e55d846f7a3b6ad698b4fd8fbc72c077dd61aa9543499c628d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.3 This release

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page