diff --git a/archives.html b/archives.html index 2c6b6b6..c0d51b4 100644 --- a/archives.html +++ b/archives.html @@ -30,6 +30,7 @@
2023
+
Convert string to duration
2023, Semaine 40
2023, Semaine 39
llm command-line tips
diff --git a/articles.html b/articles.html index e463396..ffc6a41 100644 --- a/articles.html +++ b/articles.html @@ -25,6 +25,22 @@

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -103,17 +119,8 @@ takes me multiple commits to find the correct configuration, which is… su

I discovered today Gitlab CI local which makes it possible …

-
- - - arch-linux

ArchLinux et mise à jour du keyring

- -

Pour les mises à jour Arch, j’utilise yay. Je -ne fais les mises à jour que de manière semi-régulière, et parfois après une -longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

-

Avec une utilisation fréquente du système, aucun problème …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-

+
+ + + python, conversion

Convert string to duration

+

I found myself wanting to convert a string to a duration (int), for some configuration.

+

Something you can call like this:

+
string_to_duration("1d", target="days") # returns 1
+string_to_duration("1d", target="hours") # returns 24
+string_to_duration("3m", target="hours") # returns 3 * 24 * 30
+
+ +

The code :

+

`python +from typing import Literal

+

def string_to_duration …

+
@@ -107,19 +123,8 @@ ne fais les mises à jour que de manière semi-régulière, et parfois après un longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes.

Avec une utilisation fréquente du système, aucun problème …

-
- - - python, packaging, zsh

Python packaging with Hatch, pipx and Zsh environment variables

- -

It’s been a while I didn’t packaged something new. I recently remembered an old -package of mine that needed some attention : -debts. It’s now time to package it, so I -discovered hatch

-

hatch new —init

-

This does the heavy-lifting for you, actually porting the setup.py files …

-