Metadata-Version: 2.4
Name: anyio-lmdb
Version: 0.1.0
Summary: Add your description here
Author-email: Vizonex <VizonexBusiness@gmail.com>
Project-URL: repository, https://github.com/Vizonex/anyio-lmdb.git
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: anyio>=4.14.1
Requires-Dist: lmdb>=2.2.1
Requires-Dist: wrapt>=2.2.2
Provides-Extra: test
Requires-Dist: pytest>=9.1.1; extra == "test"
Requires-Dist: winloop==0.6.3; platform_system == "Windows" and extra == "test"
Requires-Dist: uvloop; platform_system != "Windows" and extra == "test"
Requires-Dist: trio==0.34.0; extra == "test"
Dynamic: license-file

# anyio_lmdb
A simple lmdb wrapper for anyio forked from the python lmdb library's aio module. This library is small and easy to use
and was seen by it's author as a possible canidate to add to the [keyspec](https://github.com/Vizonex/keyspec) library (asynchronous msgspec cache library) as it is supported on windows and all other operating systems.


```python
from anyio_lmdb import AsyncEnvironment


async def main():
    async with AsyncEnvironment.create("db", readonly=False) as env:
        async with env.begin() as b:
            await b.put(b"key", b"value")
            v = await b.get(b"key")
            # b'value'
            print(v)


if __name__ == "__main__":
    import anyio

    anyio.run(main)

```



