Skip to main content
Pre-release

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

Allows attributes of classes and/or instances to be set directly through config
files. Config file example followed by code:

[sect1]
foo=bar

[Klass]
prop1=qwe
prop2=456
prop3=false

[SubKlass]
hihi = HEHE
------------------------
class Klass(Configurable):
class SubKlass(Configurable):
config = Config(hihi = "hoho")
config = Config(
prop1="asd",
prop2=123,
prop3=True
)
assert Klass.config.prop1 == "asd"
assert Klass.config.prop2 == 123
assert Klass.config.prop3 == True
assert Klass.SubKlass.config.hihi == "hoho"
c = ConfigFile(path, globals())
assert Klass.config.prop1 == "qwe"
assert Klass.config.prop2 == 456
assert Klass.config.prop3 == False
assert c.Klass.prop1 == "qwe"
assert c.Klass.prop2 == "456"
assert c.Klass.prop3 == "false"

Release files for configurable 0.1dev

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

Source distribution (sdist)

Source distribution for configurable 0.1dev
File Size Uploaded
configurable-0.1dev.tar.gz 4.3 kB Details

Release files / configurable-0.1dev.tar.gz

Download URL configurable-0.1dev.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8be92d3dd082b71e222c90589e18053082e07ec56f65a924191244481f8cbd57
BLAKE2b-256 checksum
How to use checksums
5c6bf3e709515b94c41860850646e0f1efcf0afc993f7abae2b74f5a54ee84f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1dev This release

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