dynamodol 0.1.2__tar.gz → 0.1.4__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.
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.1
2
+ Name: dynamodol
3
+ Version: 0.1.4
4
+ Summary: dynamodb (through boto3) with a simple (dict-like or list-like) interface
5
+ Home-page: https://github.com/i2mint/dynamodol
6
+ License: apache-2.0
7
+ Keywords: dynamodb,dynamo,aws,data access
8
+ Platform: any
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+
12
+
13
+ # dynamodol
14
+ dynamodb (through boto3) with a simple (dict-like or list-like) interface
15
+
16
+ To install: ```pip install dynamodol```
17
+
18
+ A basic DynamoDb via Boto3 persister demo:
19
+
20
+ ```python
21
+ >>> s = DynamoDbPersister()
22
+ >>> k = {'key': '777'} # Each collection will happily accept user-defined _key values.
23
+ >>> v = {'val': 'bar'}
24
+ >>> for _key in s:
25
+ ... del s[_key]
26
+ ...
27
+ >>> k in s
28
+ False
29
+ >>> len(s)
30
+ 0
31
+ >>> s[k] = v
32
+ >>> len(s)
33
+ 1
34
+ >>> s[k]
35
+ {'val': 'bar'}
36
+ >>> s.get(k)
37
+ {'val': 'bar'}
38
+ >>> s.get({'not': 'a key'}, {'default': 'val'}) # testing s.get with default
39
+ {'default': 'val'}
40
+ >>> list(s.values())
41
+ [{'val': 'bar'}]
42
+ >>> k in s # testing __contains__ again
43
+ True
44
+ >>> del s[k]
45
+ >>> len(s)
46
+ 0
47
+ >>> s = DynamoDbPersister(table_name='dynamodol2', key_fields=('name',))
48
+ >>> for _key in s:
49
+ ... del s[_key]
50
+ >>> len(s)
51
+ 0
52
+ >>> s[{'name': 'guido'}] = {'yob': 1956, 'proj': 'python', 'bdfl': False}
53
+ >>> s[{'name': 'guido'}]
54
+ {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
55
+ >>> s[{'name': 'vitalik'}] = {'yob': 1994, 'proj': 'ethereum', 'bdfl': True}
56
+ >>> s[{'name': 'vitalik'}]
57
+ {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
58
+ >>> for key, val in s.items():
59
+ ... print(f"{key}: {val}")
60
+ {'name': 'vitalik'}: {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
61
+ {'name': 'guido'}: {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
62
+ ```
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.1
2
+ Name: dynamodol
3
+ Version: 0.1.4
4
+ Summary: dynamodb (through boto3) with a simple (dict-like or list-like) interface
5
+ Home-page: https://github.com/i2mint/dynamodol
6
+ License: apache-2.0
7
+ Keywords: dynamodb,dynamo,aws,data access
8
+ Platform: any
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+
12
+
13
+ # dynamodol
14
+ dynamodb (through boto3) with a simple (dict-like or list-like) interface
15
+
16
+ To install: ```pip install dynamodol```
17
+
18
+ A basic DynamoDb via Boto3 persister demo:
19
+
20
+ ```python
21
+ >>> s = DynamoDbPersister()
22
+ >>> k = {'key': '777'} # Each collection will happily accept user-defined _key values.
23
+ >>> v = {'val': 'bar'}
24
+ >>> for _key in s:
25
+ ... del s[_key]
26
+ ...
27
+ >>> k in s
28
+ False
29
+ >>> len(s)
30
+ 0
31
+ >>> s[k] = v
32
+ >>> len(s)
33
+ 1
34
+ >>> s[k]
35
+ {'val': 'bar'}
36
+ >>> s.get(k)
37
+ {'val': 'bar'}
38
+ >>> s.get({'not': 'a key'}, {'default': 'val'}) # testing s.get with default
39
+ {'default': 'val'}
40
+ >>> list(s.values())
41
+ [{'val': 'bar'}]
42
+ >>> k in s # testing __contains__ again
43
+ True
44
+ >>> del s[k]
45
+ >>> len(s)
46
+ 0
47
+ >>> s = DynamoDbPersister(table_name='dynamodol2', key_fields=('name',))
48
+ >>> for _key in s:
49
+ ... del s[_key]
50
+ >>> len(s)
51
+ 0
52
+ >>> s[{'name': 'guido'}] = {'yob': 1956, 'proj': 'python', 'bdfl': False}
53
+ >>> s[{'name': 'guido'}]
54
+ {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
55
+ >>> s[{'name': 'vitalik'}] = {'yob': 1994, 'proj': 'ethereum', 'bdfl': True}
56
+ >>> s[{'name': 'vitalik'}]
57
+ {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
58
+ >>> for key, val in s.items():
59
+ ... print(f"{key}: {val}")
60
+ {'name': 'vitalik'}: {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
61
+ {'name': 'guido'}: {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
62
+ ```
@@ -1,12 +1,11 @@
1
1
  [metadata]
2
2
  name = dynamodol
3
- version = 0.1.2
3
+ version = 0.1.4
4
4
  url = https://github.com/i2mint/dynamodol
5
5
  platforms = any
6
6
  description_file = README.md
7
7
  root_url = https://github.com/i2mint/
8
8
  license = apache-2.0
9
- author = OtoSense
10
9
  description = dynamodb (through boto3) with a simple (dict-like or list-like) interface
11
10
  long_description = file:README.md
12
11
  long_description_content_type = text/markdown
dynamodol-0.1.2/PKG-INFO DELETED
@@ -1,62 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: dynamodol
3
- Version: 0.1.2
4
- Summary: dynamodb (through boto3) with a simple (dict-like or list-like) interface
5
- Home-page: https://github.com/i2mint/dynamodol
6
- Author: OtoSense
7
- License: apache-2.0
8
- Description:
9
- # dynamodol
10
- dynamodb (through boto3) with a simple (dict-like or list-like) interface
11
-
12
- To install: ```pip install dynamodol```
13
-
14
- A basic DynamoDb via Boto3 persister demo:
15
-
16
- ```python
17
- >>> s = DynamoDbPersister()
18
- >>> k = {'key': '777'} # Each collection will happily accept user-defined _key values.
19
- >>> v = {'val': 'bar'}
20
- >>> for _key in s:
21
- ... del s[_key]
22
- ...
23
- >>> k in s
24
- False
25
- >>> len(s)
26
- 0
27
- >>> s[k] = v
28
- >>> len(s)
29
- 1
30
- >>> s[k]
31
- {'val': 'bar'}
32
- >>> s.get(k)
33
- {'val': 'bar'}
34
- >>> s.get({'not': 'a key'}, {'default': 'val'}) # testing s.get with default
35
- {'default': 'val'}
36
- >>> list(s.values())
37
- [{'val': 'bar'}]
38
- >>> k in s # testing __contains__ again
39
- True
40
- >>> del s[k]
41
- >>> len(s)
42
- 0
43
- >>> s = DynamoDbPersister(table_name='dynamodol2', key_fields=('name',))
44
- >>> for _key in s:
45
- ... del s[_key]
46
- >>> len(s)
47
- 0
48
- >>> s[{'name': 'guido'}] = {'yob': 1956, 'proj': 'python', 'bdfl': False}
49
- >>> s[{'name': 'guido'}]
50
- {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
51
- >>> s[{'name': 'vitalik'}] = {'yob': 1994, 'proj': 'ethereum', 'bdfl': True}
52
- >>> s[{'name': 'vitalik'}]
53
- {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
54
- >>> for key, val in s.items():
55
- ... print(f"{key}: {val}")
56
- {'name': 'vitalik'}: {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
57
- {'name': 'guido'}: {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
58
- ```
59
-
60
- Keywords: dynamodb,dynamo,aws,data access
61
- Platform: any
62
- Description-Content-Type: text/markdown
@@ -1,62 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: dynamodol
3
- Version: 0.1.2
4
- Summary: dynamodb (through boto3) with a simple (dict-like or list-like) interface
5
- Home-page: https://github.com/i2mint/dynamodol
6
- Author: OtoSense
7
- License: apache-2.0
8
- Description:
9
- # dynamodol
10
- dynamodb (through boto3) with a simple (dict-like or list-like) interface
11
-
12
- To install: ```pip install dynamodol```
13
-
14
- A basic DynamoDb via Boto3 persister demo:
15
-
16
- ```python
17
- >>> s = DynamoDbPersister()
18
- >>> k = {'key': '777'} # Each collection will happily accept user-defined _key values.
19
- >>> v = {'val': 'bar'}
20
- >>> for _key in s:
21
- ... del s[_key]
22
- ...
23
- >>> k in s
24
- False
25
- >>> len(s)
26
- 0
27
- >>> s[k] = v
28
- >>> len(s)
29
- 1
30
- >>> s[k]
31
- {'val': 'bar'}
32
- >>> s.get(k)
33
- {'val': 'bar'}
34
- >>> s.get({'not': 'a key'}, {'default': 'val'}) # testing s.get with default
35
- {'default': 'val'}
36
- >>> list(s.values())
37
- [{'val': 'bar'}]
38
- >>> k in s # testing __contains__ again
39
- True
40
- >>> del s[k]
41
- >>> len(s)
42
- 0
43
- >>> s = DynamoDbPersister(table_name='dynamodol2', key_fields=('name',))
44
- >>> for _key in s:
45
- ... del s[_key]
46
- >>> len(s)
47
- 0
48
- >>> s[{'name': 'guido'}] = {'yob': 1956, 'proj': 'python', 'bdfl': False}
49
- >>> s[{'name': 'guido'}]
50
- {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
51
- >>> s[{'name': 'vitalik'}] = {'yob': 1994, 'proj': 'ethereum', 'bdfl': True}
52
- >>> s[{'name': 'vitalik'}]
53
- {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
54
- >>> for key, val in s.items():
55
- ... print(f"{key}: {val}")
56
- {'name': 'vitalik'}: {'proj': 'ethereum', 'yob': Decimal('1994'), 'bdfl': True}
57
- {'name': 'guido'}: {'proj': 'python', 'yob': Decimal('1956'), 'bdfl': False}
58
- ```
59
-
60
- Keywords: dynamodb,dynamo,aws,data access
61
- Platform: any
62
- Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes