From 54d339b68f1d17d446648e98d8afe5b2f75af549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Wed, 11 Oct 2023 11:12:34 +0200 Subject: [PATCH] Update documentation --- archives.html | 1 + articles.html | 27 +++++++---- articles10.html | 27 +++++++---- articles11.html | 27 +++++++---- articles12.html | 27 +++++++---- articles13.html | 27 +++++++---- articles14.html | 27 +++++++---- articles15.html | 27 +++++++---- articles16.html | 27 +++++++---- articles17.html | 27 +++++++---- articles18.html | 27 +++++++---- articles19.html | 27 +++++++---- articles2.html | 27 +++++++---- articles20.html | 27 +++++++---- articles21.html | 27 +++++++---- articles22.html | 27 +++++++---- articles23.html | 27 +++++++---- articles24.html | 27 +++++++---- articles25.html | 27 +++++++---- articles26.html | 27 +++++++---- articles27.html | 27 +++++++---- articles28.html | 27 +++++++---- articles29.html | 27 +++++++---- articles3.html | 27 +++++++---- articles30.html | 27 +++++++---- articles31.html | 27 +++++++---- articles32.html | 27 +++++++---- articles33.html | 27 +++++++---- articles34.html | 27 +++++++---- articles35.html | 27 +++++++---- articles36.html | 27 +++++++---- articles37.html | 27 +++++++---- articles38.html | 27 +++++++---- articles39.html | 27 +++++++---- articles4.html | 27 +++++++---- articles40.html | 27 +++++++---- articles41.html | 27 +++++++---- articles42.html | 27 +++++++---- articles43.html | 27 +++++++---- articles44.html | 27 +++++++---- articles45.html | 27 +++++++---- articles46.html | 27 +++++++---- articles47.html | 27 +++++++---- articles48.html | 27 +++++++---- articles49.html | 27 +++++++---- articles5.html | 27 +++++++---- articles50.html | 27 +++++++---- articles51.html | 27 +++++++---- articles52.html | 27 +++++++---- articles53.html | 27 +++++++---- articles54.html | 27 +++++++---- articles55.html | 27 +++++++---- articles6.html | 27 +++++++---- articles7.html | 27 +++++++---- articles8.html | 27 +++++++---- articles9.html | 27 +++++++---- author/.html | 29 +++++++----- author/.html10 | 29 +++++++----- author/.html11 | 29 +++++++----- author/.html12 | 29 +++++++----- author/.html13 | 29 +++++++----- author/.html14 | 29 +++++++----- author/.html15 | 29 +++++++----- author/.html16 | 29 +++++++----- author/.html17 | 29 +++++++----- author/.html18 | 29 +++++++----- author/.html19 | 29 +++++++----- author/.html2 | 29 +++++++----- author/.html20 | 29 +++++++----- author/.html21 | 29 +++++++----- author/.html22 | 29 +++++++----- author/.html23 | 29 +++++++----- author/.html24 | 29 +++++++----- author/.html25 | 29 +++++++----- author/.html26 | 29 +++++++----- author/.html27 | 29 +++++++----- author/.html28 | 29 +++++++----- author/.html29 | 29 +++++++----- author/.html3 | 29 +++++++----- author/.html30 | 29 +++++++----- author/.html31 | 29 +++++++----- author/.html32 | 29 +++++++----- author/.html33 | 29 +++++++----- author/.html34 | 29 +++++++----- author/.html35 | 29 +++++++----- author/.html36 | 29 +++++++----- author/.html37 | 29 +++++++----- author/.html38 | 29 +++++++----- author/.html39 | 29 +++++++----- author/.html4 | 29 +++++++----- author/.html40 | 29 +++++++----- author/.html41 | 29 +++++++----- author/.html42 | 29 +++++++----- author/.html43 | 29 +++++++----- author/.html44 | 29 +++++++----- author/.html45 | 29 +++++++----- author/.html46 | 29 +++++++----- author/.html47 | 29 +++++++----- author/.html48 | 29 +++++++----- author/.html49 | 29 +++++++----- author/.html5 | 29 +++++++----- author/.html50 | 29 +++++++----- author/.html6 | 29 +++++++----- author/.html7 | 29 +++++++----- author/.html8 | 29 +++++++----- author/.html9 | 29 +++++++----- categories.html | 2 +- code/index.html | 32 ++++++++----- code/index10.html | 32 ++++++++----- code/index11.html | 32 ++++++++----- code/index12.html | 32 ++++++++----- code/index13.html | 32 ++++++++----- code/index14.html | 32 ++++++++----- code/index15.html | 32 ++++++++----- code/index16.html | 32 ++++++++----- code/index17.html | 32 ++++++++----- code/index18.html | 32 ++++++++----- code/index19.html | 32 ++++++++----- code/index2.html | 32 ++++++++----- code/index20.html | 32 ++++++++----- code/index21.html | 32 ++++++++----- code/index22.html | 32 ++++++++----- code/index3.html | 32 ++++++++----- code/index4.html | 32 ++++++++----- code/index5.html | 32 ++++++++----- code/index6.html | 32 ++++++++----- code/index7.html | 32 ++++++++----- code/index8.html | 32 ++++++++----- code/index9.html | 32 ++++++++----- convert-string-to-duration.html | 84 +++++++++++++++++++++++++++++++++ feeds/.atom.xml | 50 +++++++++++++++++++- feeds/.rss.xml | 12 ++++- feeds/all-en.atom.xml | 50 +++++++++++++++++++- feeds/all.atom.xml | 50 +++++++++++++++++++- feeds/code.atom.xml | 50 +++++++++++++++++++- tag/conversion.html | 53 +++++++++++++++++++++ tag/python.html | 16 +++++++ tags.html | 3 +- 138 files changed, 2567 insertions(+), 1443 deletions(-) create mode 100644 convert-string-to-duration.html create mode 100644 tag/conversion.html 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 …

-