Attumm / redis-dict

Python dictionary with Redis as backend, built for large datasets. Simplifies Redis operations for large-scale and distributed systems. Supports various data types, namespacing, pipelining, and expiration.
MIT License
51 stars 14 forks source link

Follow latest conventions, and best practices. #68

Closed Attumm closed 6 days ago

Attumm commented 1 week ago

RedisDict is an older project, initially started as python2 project. Excerpt from the following discussion

  1. py.typed file: Signals type checker compliance, could improve type inference.PEP 561
  2. Python Protocols: Could provide better autocompletion, type checking, and error detection for duck-typed code without runtime overhead PEP 544
  3. .pyi stub file: Provides separate type information PEP 484 (Stub Files)
  4. Mypy configuration: configure Mypy at package/project level for consistent type checking and integration. Mypy configuration file
  5. __init__.py: Adhere to package layout standards with __init__.py containing __all__ to explicitly define the package's interface. Improve code analysis layout
  6. pyproject.toml: Adhere to the latest convention. pyproject.toml