citate 1.0.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.
- citate-1.0.0/PKG-INFO +20 -0
- citate-1.0.0/README.md +12 -0
- citate-1.0.0/citate/__init__.py +25 -0
- citate-1.0.0/citate.egg-info/PKG-INFO +20 -0
- citate-1.0.0/citate.egg-info/SOURCES.txt +7 -0
- citate-1.0.0/citate.egg-info/dependency_links.txt +1 -0
- citate-1.0.0/citate.egg-info/top_level.txt +1 -0
- citate-1.0.0/pyproject.toml +11 -0
- citate-1.0.0/setup.cfg +4 -0
citate-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: citate
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Quote formatter with different quote types
|
|
5
|
+
Author-email: MulticNews <escape.from.the.pickaxe@gmail.com>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# citate
|
|
10
|
+
|
|
11
|
+
Quote formatter with different quote types.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
from citate import citate, Single, Double, Fir, Paws
|
|
16
|
+
|
|
17
|
+
citate(Fir, "Hello", "world") # «Hello world»
|
|
18
|
+
citate(Single, "Hello") # 'Hello'
|
|
19
|
+
citate(Double, "Hello") # "Hello"
|
|
20
|
+
citate(Paws, "Hello") # “Hello„
|
citate-1.0.0/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# citate
|
|
2
|
+
|
|
3
|
+
Quote formatter with different quote types.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
from citate import citate, Single, Double, Fir, Paws
|
|
8
|
+
|
|
9
|
+
citate(Fir, "Hello", "world") # «Hello world»
|
|
10
|
+
citate(Single, "Hello") # 'Hello'
|
|
11
|
+
citate(Double, "Hello") # "Hello"
|
|
12
|
+
citate(Paws, "Hello") # “Hello„
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Single = "Single"
|
|
2
|
+
Double = "Double"
|
|
3
|
+
Fir = "Fir"
|
|
4
|
+
Paws = "Paws"
|
|
5
|
+
|
|
6
|
+
Одинарные = Single
|
|
7
|
+
Двойные = Double
|
|
8
|
+
Ёлочки = Fir
|
|
9
|
+
Русскоязычные = Paws
|
|
10
|
+
|
|
11
|
+
def citate(quote_type, *args):
|
|
12
|
+
text = ' '.join(str(arg) for arg in args)
|
|
13
|
+
|
|
14
|
+
quotes = {
|
|
15
|
+
"Single": f"'{text}'",
|
|
16
|
+
"Double": f'"{text}"',
|
|
17
|
+
"Fir": f'«{text}»',
|
|
18
|
+
"Paws": f'“{text}„',
|
|
19
|
+
"Одинарные": f"'{text}'",
|
|
20
|
+
"Двойные": f'"{text}"',
|
|
21
|
+
"Ёлочки": f'«{text}»',
|
|
22
|
+
"Русскоязычные": f'“{text}„',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
print(quotes.get(quote_type, f'«{text}»'))
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: citate
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Quote formatter with different quote types
|
|
5
|
+
Author-email: MulticNews <escape.from.the.pickaxe@gmail.com>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# citate
|
|
10
|
+
|
|
11
|
+
Quote formatter with different quote types.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
from citate import citate, Single, Double, Fir, Paws
|
|
16
|
+
|
|
17
|
+
citate(Fir, "Hello", "world") # «Hello world»
|
|
18
|
+
citate(Single, "Hello") # 'Hello'
|
|
19
|
+
citate(Double, "Hello") # "Hello"
|
|
20
|
+
citate(Paws, "Hello") # “Hello„
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
citate
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "citate"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
authors = [{ name = "MulticNews", email = "escape.from.the.pickaxe@gmail.com" }]
|
|
9
|
+
description = "Quote formatter with different quote types"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.8"
|
citate-1.0.0/setup.cfg
ADDED