python-time-functions 2.4.0__tar.gz → 2.5.0__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: python_time_functions
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: Common Python functions for time handling
5
5
  Author-email: Corne Bester <corne.bester@gmail.com>
6
6
  Project-URL: Homepage, https://example.com
@@ -17,30 +17,34 @@ Dynamic: license-file
17
17
 
18
18
  Common Python functions for time handling
19
19
 
20
+ ```shell
21
+ pip install --upgrade python_time_functions
22
+ ```
23
+
20
24
  ```python
21
25
  from datetime import datetime, timezone
22
-
23
- import time_functions.time_functions as time_functions
24
- # OR
25
- from time_functions.time_functions import get_timestamp_unix_millis
26
+ from python_time_functions import time_functions as tf
26
27
 
27
28
  timestamp = datetime.now(timezone.utc)
28
- unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
29
+ unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
29
30
 
30
31
  ```
31
32
 
32
33
  ## local dev
33
34
 
34
- pip install -r requirements.txt
35
-
35
+ ```shell
36
+ pip install -r requirements.txt
37
+ ```
36
38
 
37
39
  ## test
38
40
 
39
- pytest
40
-
41
+ ```shell
42
+ pytest
43
+ ```
41
44
 
42
45
  ### other
43
46
 
44
- pip3 freeze > requirements.txt
45
-
47
+ ```shell
48
+ pip3 freeze > requirements.txt
49
+ ```
46
50
 
@@ -0,0 +1,35 @@
1
+ # Readme
2
+
3
+ Common Python functions for time handling
4
+
5
+ ```shell
6
+ pip install --upgrade python_time_functions
7
+ ```
8
+
9
+ ```python
10
+ from datetime import datetime, timezone
11
+ from python_time_functions import time_functions as tf
12
+
13
+ timestamp = datetime.now(timezone.utc)
14
+ unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
15
+
16
+ ```
17
+
18
+ ## local dev
19
+
20
+ ```shell
21
+ pip install -r requirements.txt
22
+ ```
23
+
24
+ ## test
25
+
26
+ ```shell
27
+ pytest
28
+ ```
29
+
30
+ ### other
31
+
32
+ ```shell
33
+ pip3 freeze > requirements.txt
34
+ ```
35
+
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python_time_functions"
7
- version = "2.4.0"
7
+ version = "2.5.0"
8
8
  description = "Common Python functions for time handling"
9
9
  requires-python = ">=3.10"
10
10
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python_time_functions
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: Common Python functions for time handling
5
5
  Author-email: Corne Bester <corne.bester@gmail.com>
6
6
  Project-URL: Homepage, https://example.com
@@ -17,30 +17,34 @@ Dynamic: license-file
17
17
 
18
18
  Common Python functions for time handling
19
19
 
20
+ ```shell
21
+ pip install --upgrade python_time_functions
22
+ ```
23
+
20
24
  ```python
21
25
  from datetime import datetime, timezone
22
-
23
- import time_functions.time_functions as time_functions
24
- # OR
25
- from time_functions.time_functions import get_timestamp_unix_millis
26
+ from python_time_functions import time_functions as tf
26
27
 
27
28
  timestamp = datetime.now(timezone.utc)
28
- unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
29
+ unix_millis = tf.get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
29
30
 
30
31
  ```
31
32
 
32
33
  ## local dev
33
34
 
34
- pip install -r requirements.txt
35
-
35
+ ```shell
36
+ pip install -r requirements.txt
37
+ ```
36
38
 
37
39
  ## test
38
40
 
39
- pytest
40
-
41
+ ```shell
42
+ pytest
43
+ ```
41
44
 
42
45
  ### other
43
46
 
44
- pip3 freeze > requirements.txt
45
-
47
+ ```shell
48
+ pip3 freeze > requirements.txt
49
+ ```
46
50
 
@@ -1,31 +0,0 @@
1
- # Readme
2
-
3
- Common Python functions for time handling
4
-
5
- ```python
6
- from datetime import datetime, timezone
7
-
8
- import time_functions.time_functions as time_functions
9
- # OR
10
- from time_functions.time_functions import get_timestamp_unix_millis
11
-
12
- timestamp = datetime.now(timezone.utc)
13
- unix_millis = get_timestamp_unix_millis(timestamp) # create unix timestamp from obj above
14
-
15
- ```
16
-
17
- ## local dev
18
-
19
- pip install -r requirements.txt
20
-
21
-
22
- ## test
23
-
24
- pytest
25
-
26
-
27
- ### other
28
-
29
- pip3 freeze > requirements.txt
30
-
31
-