Current collected state Current
Observed since 21 Oct, 11:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
aioconfig efficiently and thread-safely stores configurations in the
background (asynchronously).
pip install aioconfig
The interface of aioconfig is dramatically easy to use.
For example, both set(key, value) and await set(key, value) store a pair of
key/value, which the former one is a fire-and-forget asynchronous function call
while the latter one blocks until the data written onto the disk.
import aioconfig
storage = aioconfig.get_storage(await aioconfig.attach('example.db'))
section = await aioconfig.get('default')
section.delete(key='foo')
await section.delete(key='foo')
value1 = await section.get(key='foo', default='bar')
value2 = await section.get(key='baz', default=12.3)
value = await section.get_all()
section.set(key='foo', value='bar')
section.set(key='baz', value=12.3)
await section.set(key='foo', value='bar')
await section.set(key='baz', value=12.3)
with storage.transation():
storage.set(
key='foo', value='bar',
section='default_section')
storage.set(
key='baz', value=12.3,
section='default_section')
async with storage.transation():
storage.set(
key='foo', value='bar',
section='default_section')
storage.set(
key='baz', value=12.3,
section='default_section')
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.4.8 | 25 Jul 2022 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f668b44a809f2feead740f118aedcf9c8a20caa6a2e167e609221f96072cba4b