pyletov 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyletov-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.3
2
+ Name: pyletov
3
+ Version: 0.1.0
4
+ Summary: Вечность пахнет нефтью
5
+ Author-email: macintoshkrug@gmail.com
6
+ Requires-Python: >=3.13
7
+ Description-Content-Type: text/markdown
8
+
9
+ How to use:
10
+
11
+ 1. Install
12
+ ```
13
+ uv add pyletov
14
+ ```
15
+
16
+ 2. Use
17
+ ```py
18
+ from pyletov import letov
19
+ print(letov())
20
+ ```
21
+
22
+ 3. ????????
23
+
24
+ 4. Вечность пахнет нефтью...
25
+
26
+ ```
27
+ ( )
28
+ )\ ) * ) ( /(
29
+ (()/( ( ` ) /( )\()) ( (
30
+ /(_)) )\ ( )(_))((_)\ )\ )\
31
+ (_)) ((_) (_(_()) ((_)((_)((_)
32
+ | | | __||_ _| / _ \\ \ / /
33
+ | |__ | _| | | | (_) |\ V /
34
+ |____||___| |_| \___/ \_/
35
+ ```
@@ -0,0 +1,27 @@
1
+ How to use:
2
+
3
+ 1. Install
4
+ ```
5
+ uv add pyletov
6
+ ```
7
+
8
+ 2. Use
9
+ ```py
10
+ from pyletov import letov
11
+ print(letov())
12
+ ```
13
+
14
+ 3. ????????
15
+
16
+ 4. Вечность пахнет нефтью...
17
+
18
+ ```
19
+ ( )
20
+ )\ ) * ) ( /(
21
+ (()/( ( ` ) /( )\()) ( (
22
+ /(_)) )\ ( )(_))((_)\ )\ )\
23
+ (_)) ((_) (_(_()) ((_)((_)((_)
24
+ | | | __||_ _| / _ \\ \ / /
25
+ | |__ | _| | | | (_) |\ V /
26
+ |____||___| |_| \___/ \_/
27
+ ```
@@ -0,0 +1,17 @@
1
+ [project]
2
+ name = "pyletov"
3
+ version = "0.1.0"
4
+ description = "Вечность пахнет нефтью"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ dependencies = []
8
+
9
+ [[project.authors]]
10
+ email = "macintoshkrug@gmail.com"
11
+
12
+ [project.scripts]
13
+ letov = "pyletov:main"
14
+
15
+ [build-system]
16
+ requires = ["uv_build>=0.13.4,<0.14.0"]
17
+ build-backend = "uv_build"
@@ -0,0 +1,15 @@
1
+ [project]
2
+ name = "pyletov"
3
+ version = "0.1.0"
4
+ description = "Вечность пахнет нефтью"
5
+ readme = "README.md"
6
+ authors = [{ email = "macintoshkrug@gmail.com" }]
7
+ requires-python = ">=3.13"
8
+ dependencies = []
9
+
10
+ [project.scripts]
11
+ letov = "pyletov:main"
12
+
13
+ [build-system]
14
+ requires = ["uv_build>=0.13.4,<0.14.0"]
15
+ build-backend = "uv_build"
@@ -0,0 +1,18 @@
1
+ import json
2
+ from pathlib import Path
3
+ from random import choice
4
+
5
+ _PACKAGE_DIR = Path(__file__).parent
6
+ _VOCAB_PATH = _PACKAGE_DIR / "data" / "vocab.json"
7
+
8
+ with open(_VOCAB_PATH, "rb") as f:
9
+ dictionary = json.load(f)
10
+
11
+ def letov(model: str = "mlp", min_length: int = 5, max_length: int = 15) -> str:
12
+ song = choice(dictionary)
13
+ line = choice(song["lyrics"])
14
+ return line
15
+
16
+
17
+ def main() -> None:
18
+ print(letov())