Manages IO operations of a single file
Project description
IOManage
Manages IO operations of a single file
Applications in which this library is useful
The only scenario I made this library for is when reading and writing from a single file in more than a single thread.
Currently also working on classes to read and write from/to massive JSON files
Features
! IOManager Class
+ Read/Write queue system
+ Can cleanly close file, finishing all r/w functions before terminating
+ ID system for holding queue for write after a read to prevent data mismatching
+ Loop runs in its own thread, so no asyncio management is required
! IOJson, IOList and IODict Classes
+ Can index massive lists and dicts from JSON files
+ Dictionaries read from JSON are IODict objects
+ Lists read from JSON are IOList objects
+ Each IOList, IODict, and IOJson class has only 1 key and/or value stored in memory at one time
- Can not detect malformed JSON, instead will (probably) break
- Can not (yet) iterate through IODict, and IOJson classes
- NOT THREADSAFE!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iomanage-1.0.5.tar.gz
(5.7 kB
view details)
File details
Details for the file iomanage-1.0.5.tar.gz
.
File metadata
- Download URL: iomanage-1.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689808e4570d84c0f072e3fc106ee17e5ac07d274a88009239e974af58d887cc |
|
MD5 | 1138b2217165789fa87707ea8dbadf93 |
|
BLAKE2b-256 | 9544f172ea30aef0a7e245f476de3d6d4c627231856c2acb8c4d60fb84e7a335 |