properties.py
Description
Module for reading/writing properties-files.
Installation
pip install -U properties.py
Usage
Code
import properties
user = {"name": "NoName", "age": -1, "sex": "M", "data": {"region": 39, "keywords": ["man", "human", 14.88]}}
with open("test.properties", "w", encoding="utf-8", errors="ignore") as file:
properties.dump(user, file)
with open("test.properties", "r", encoding="utf-8", errors="ignore") as file:
data = properties.load(file)
print(data)
Output
{'name': 'NoName', 'age': -1, 'sex': 'M', 'data': {'region': 39, 'keywords': ['man', 'human', 14.88]}}
Metadata
Release files for properties.py 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| properties_py-1.2.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| properties_py-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / properties_py-1.2.1.tar.gz
| Download URL | properties_py-1.2.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c08c75842985ce6d7c3a01c55d018945ec4e8ce06ae7b10510ed1b0b402ed252
|
|
BLAKE2b-256 checksum How to use checksums |
a3e8ddfc4d18bbb200ec4aec8d88836406d6d8c69f9bcd563552826c651ece6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.13 Windows/10
|
Release files / properties_py-1.2.1-py3-none-any.whl
| Download URL | properties_py-1.2.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82fd9247509f513a449122e18b5e6d384ed24be99841c0e82518b64798f2bb77
|
|
BLAKE2b-256 checksum How to use checksums |
e7444a57fde8655f3f6e577980c50a95c0d62edc31bb39ed49f3cc5c03630937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.13 Windows/10
|