pycacheable 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycacheable
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Decorator de cache para funções e métodos Python, com backends InMemory e SQLite, TTL configurável e hash estável de parâmetros.
5
5
  Author-email: Leonardo Pinho <contato@leonardopinho.com>
6
6
  License: MIT License
@@ -82,9 +82,9 @@ A biblioteca fornece:
82
82
  ## Como usar
83
83
 
84
84
  ```python
85
- from src.pycacheable.backend_sqlite import SQLiteCache
86
- from src.pycacheable.backend_memory import InMemoryCache
87
- from src.pycacheable.cacheable import cacheable
85
+ from pycacheable import SQLiteCache
86
+ from pycacheable import InMemoryCache
87
+ from pycacheable import cacheable
88
88
 
89
89
  mem = InMemoryCache(max_entries=512)
90
90
  disk = SQLiteCache(path="./.cache/myapp.sqlite")
@@ -34,9 +34,9 @@ A biblioteca fornece:
34
34
  ## Como usar
35
35
 
36
36
  ```python
37
- from src.pycacheable.backend_sqlite import SQLiteCache
38
- from src.pycacheable.backend_memory import InMemoryCache
39
- from src.pycacheable.cacheable import cacheable
37
+ from pycacheable import SQLiteCache
38
+ from pycacheable import InMemoryCache
39
+ from pycacheable import cacheable
40
40
 
41
41
  mem = InMemoryCache(max_entries=512)
42
42
  disk = SQLiteCache(path="./.cache/myapp.sqlite")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pycacheable"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Decorator de cache para funções e métodos Python, com backends InMemory e SQLite, TTL configurável e hash estável de parâmetros."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -0,0 +1,4 @@
1
+ from .cacheable import cacheable
2
+ from .backend_memory import InMemoryCache
3
+ from .backend_sqlite import SQLiteCache
4
+ __all__ = ["cacheable", "InMemoryCache", "SQLiteCache"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycacheable
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Decorator de cache para funções e métodos Python, com backends InMemory e SQLite, TTL configurável e hash estável de parâmetros.
5
5
  Author-email: Leonardo Pinho <contato@leonardopinho.com>
6
6
  License: MIT License
@@ -82,9 +82,9 @@ A biblioteca fornece:
82
82
  ## Como usar
83
83
 
84
84
  ```python
85
- from src.pycacheable.backend_sqlite import SQLiteCache
86
- from src.pycacheable.backend_memory import InMemoryCache
87
- from src.pycacheable.cacheable import cacheable
85
+ from pycacheable import SQLiteCache
86
+ from pycacheable import InMemoryCache
87
+ from pycacheable import cacheable
88
88
 
89
89
  mem = InMemoryCache(max_entries=512)
90
90
  disk = SQLiteCache(path="./.cache/myapp.sqlite")
@@ -1,7 +1,7 @@
1
1
  import time
2
2
  import unittest
3
3
 
4
- from src import cacheable, InMemoryCache
4
+ from src.pycacheable import cacheable, InMemoryCache
5
5
 
6
6
 
7
7
  class Repository:
@@ -3,7 +3,7 @@ import tempfile
3
3
  import time
4
4
  import unittest
5
5
 
6
- from src import SQLiteCache, cacheable
6
+ from src.pycacheable import SQLiteCache, cacheable
7
7
 
8
8
 
9
9
  class Repository:
File without changes
File without changes
File without changes