Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

read-unicode-environment-variables-dictionary

Use raw ctypes to read Unicode environment variables directly from the OS, even where Python's own os module is incomplete or restricted.

Modern Python, Real Environment

The traditional os module in Python keeps you at arm's length from the operating system - especially on unusual platforms (think Android and iOS). Sometimes, that means missing features, incomplete access, or just plain frustration.

read-environment-variables-dictionary is the essential building block for serious system scripting and tooling:

  • Bypasses the os module entirely.
  • Accesses the actual process environment directly through ctypes, using POSIX and Win32 APIs - no wrappers, no middlemen, no artificial restrictions.
  • Fully Unicode - even fixes Python 2's legacy handling.

If you're creating tools, build systems, cross-platform utilities, deployment scripts, or Python-based automation, * this is the reliable, lowest-level method for reading the environment.* Use it directly, or build on top of it.

Usage

# coding=utf-8
from __future__ import print_function

from read_unicode_environment_variables_dictionary import read_unicode_environment_variables_dictionary

env = read_unicode_environment_variables_dictionary()
print(env[u'PATH'])

Install

pip install read-unicode-environment-variables-dictionary

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

Release files for read-unicode-environment-variables-dictionary 0.1.0a0

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

Source distribution (sdist)

Source distribution for read-unicode-environment-variables-dictionary 0.1.0a0
File Size Uploaded
read_unicode_environment_variables_dictionary-0.1.0a0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for read-unicode-environment-variables-dictionary 0.1.0a0
File Interpreter ABI Platform
read_unicode_environment_variables_dictionary-0.1.0a0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.4 kB

Release files / read_unicode_environment_variables_dictionary-0.1.0a0.tar.gz

Download URL read_unicode_environment_variables_dictionary-0.1.0a0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
76dc7cf7256cdb5434d699ae241de801b99f72052cdbeda17f918420b2bafa6f
BLAKE2b-256 checksum
How to use checksums
2d9e9fe88a3f4cd88164371bf86b085c33773520310221c191ec35af417af7af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / read_unicode_environment_variables_dictionary-0.1.0a0-py2.py3-none-any.whl

Download URL read_unicode_environment_variables_dictionary-0.1.0a0-py2.py3-none-any.whl
Size 4.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c187f2d798f5d713cb5fbc850c5faa3cbabf3fc79ccd61ad0aade6559b6ea3d
BLAKE2b-256 checksum
How to use checksums
1a15690ce1c414a6d93516e7f92e07114fa94e44d9e2f383a88dd49799a3834e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.0a0 This release

2 release files

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