qsql 1.0__tar.gz → 1.0.1__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.

Potentially problematic release.


This version of qsql might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qsql
3
- Version: 1.0
3
+ Version: 1.0.1
4
4
  Summary: Parses queries from an sql file, and turns them into callable f-strings. Also a file cache decorator for slow queries and multi-session permanence, supports async functions.
5
5
  Author-email: Charles Marks <charlesmarksco@gmail.com>
6
6
  Description-Content-Type: text/markdown
@@ -10,6 +10,7 @@ Project-URL: Home, https://github.com/CircuitCM/pyquicksql
10
10
 
11
11
  # PyQuickSQL
12
12
  For a more thorough explanation see [example.ipynb](https://github.com/CircuitCM/pyquicksql/blob/main/example.ipynb)
13
+ To install: `pip install qsql`
13
14
  ### How to use the query loader:
14
15
  ```python
15
16
  import quicksql as qq
@@ -55,7 +56,7 @@ ORDER BY
55
56
 
56
57
  ### How to use the file cache:
57
58
  This is very similar to functool's `cache`, with the main difference being that `@qq.file_cache` caches the asset to memory
58
- and to you system's default temporary directory. If the memory cache ever fails (eg a restarted kernel) it will load the asset from it's pickled file.
59
+ and to your system's default temporary directory. If the memory cache ever fails (eg a restarted kernel) it will load the asset from it's pickled file.
59
60
  ```python
60
61
  from random import randint
61
62
  import quicksql as qq
@@ -1,5 +1,6 @@
1
1
  # PyQuickSQL
2
2
  For a more thorough explanation see [example.ipynb](https://github.com/CircuitCM/pyquicksql/blob/main/example.ipynb)
3
+ To install: `pip install qsql`
3
4
  ### How to use the query loader:
4
5
  ```python
5
6
  import quicksql as qq
@@ -45,7 +46,7 @@ ORDER BY
45
46
 
46
47
  ### How to use the file cache:
47
48
  This is very similar to functool's `cache`, with the main difference being that `@qq.file_cache` caches the asset to memory
48
- and to you system's default temporary directory. If the memory cache ever fails (eg a restarted kernel) it will load the asset from it's pickled file.
49
+ and to your system's default temporary directory. If the memory cache ever fails (eg a restarted kernel) it will load the asset from it's pickled file.
49
50
  ```python
50
51
  from random import randint
51
52
  import quicksql as qq
@@ -1,5 +1,5 @@
1
1
  """Parses queries from an sql file, and turns them into callable f-strings. Also a file cache decorator for slow queries and multi-session permanence, supports async functions."""
2
2
 
3
- __version__ = '1.0'
3
+ __version__ = '1.0.1'
4
4
 
5
5
  from ._quicksql import file_cache,test_cache,Query,LoadSQL,clear_cache,NoStr
@@ -17,8 +17,7 @@ os.makedirs(cache_dir, exist_ok=True)
17
17
 
18
18
  _FQS = re.compile(r"--\s*name\s*:\s*")
19
19
  _FNAM = re.compile(r"\W")
20
- #the previous regex but includes
21
- _VIN = re.compile(r":\w+")
20
+ _VIN = re.compile(r"(?<!:):\w+")
22
21
  _alljopts=js.OPT_SERIALIZE_DATACLASS|js.OPT_SERIALIZE_NUMPY|js.OPT_SERIALIZE_UUID|js.OPT_NAIVE_UTC|js.OPT_NON_STR_KEYS
23
22
 
24
23
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes