dextercipher 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.
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: dextercipher
3
+ Version: 0.1.0
4
+ Summary: A simple text cipher
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # DexterCipher
9
+
10
+ DexterCipher is a simple Python package that transforms text by reversing the
11
+ characters in each half of a string.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ python -m pip install dextercipher
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```python
22
+ from dextercipher import cipher
23
+
24
+ encrypted_text = cipher("HelloWorld")
25
+ print(encrypted_text)
26
+ ```
27
+
28
+ ## Build and publish
29
+
30
+ Install the build and upload tools:
31
+
32
+ ```bash
33
+ python -m pip install --upgrade build twine
34
+ ```
35
+
36
+ Build the package and check the distributions:
37
+
38
+ ```bash
39
+ python -m build
40
+ python -m twine check dist/*
41
+ ```
42
+
43
+ Upload to TestPyPI first:
44
+
45
+ ```bash
46
+ python -m twine upload --repository testpypi dist/*
47
+ ```
48
+
49
+ After verifying the TestPyPI package, upload to PyPI:
50
+
51
+ ```bash
52
+ python -m twine upload dist/*
53
+ ```
54
+
55
+ Twine will prompt for credentials. Use a PyPI API token; do not put it in this
56
+ project's source code.
57
+
58
+ ## Security note
59
+
60
+ This package is a simple text transformation, not secure encryption. Do not
61
+ use it to protect sensitive information.
@@ -0,0 +1,54 @@
1
+ # DexterCipher
2
+
3
+ DexterCipher is a simple Python package that transforms text by reversing the
4
+ characters in each half of a string.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ python -m pip install dextercipher
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```python
15
+ from dextercipher import cipher
16
+
17
+ encrypted_text = cipher("HelloWorld")
18
+ print(encrypted_text)
19
+ ```
20
+
21
+ ## Build and publish
22
+
23
+ Install the build and upload tools:
24
+
25
+ ```bash
26
+ python -m pip install --upgrade build twine
27
+ ```
28
+
29
+ Build the package and check the distributions:
30
+
31
+ ```bash
32
+ python -m build
33
+ python -m twine check dist/*
34
+ ```
35
+
36
+ Upload to TestPyPI first:
37
+
38
+ ```bash
39
+ python -m twine upload --repository testpypi dist/*
40
+ ```
41
+
42
+ After verifying the TestPyPI package, upload to PyPI:
43
+
44
+ ```bash
45
+ python -m twine upload dist/*
46
+ ```
47
+
48
+ Twine will prompt for credentials. Use a PyPI API token; do not put it in this
49
+ project's source code.
50
+
51
+ ## Security note
52
+
53
+ This package is a simple text transformation, not secure encryption. Do not
54
+ use it to protect sensitive information.
@@ -0,0 +1,10 @@
1
+ """A simple text cipher."""
2
+
3
+
4
+ def cipher(word: object) -> str:
5
+ """Reverse the characters in each half of the input text."""
6
+ text = str(word)
7
+ middle = len(text) // 2
8
+ first_half = text[:middle]
9
+ second_half = text[middle:] if len(text) % 2 == 0 else text[middle + 1 :]
10
+ return first_half[::-1] + second_half[::-1]
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: dextercipher
3
+ Version: 0.1.0
4
+ Summary: A simple text cipher
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # DexterCipher
9
+
10
+ DexterCipher is a simple Python package that transforms text by reversing the
11
+ characters in each half of a string.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ python -m pip install dextercipher
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```python
22
+ from dextercipher import cipher
23
+
24
+ encrypted_text = cipher("HelloWorld")
25
+ print(encrypted_text)
26
+ ```
27
+
28
+ ## Build and publish
29
+
30
+ Install the build and upload tools:
31
+
32
+ ```bash
33
+ python -m pip install --upgrade build twine
34
+ ```
35
+
36
+ Build the package and check the distributions:
37
+
38
+ ```bash
39
+ python -m build
40
+ python -m twine check dist/*
41
+ ```
42
+
43
+ Upload to TestPyPI first:
44
+
45
+ ```bash
46
+ python -m twine upload --repository testpypi dist/*
47
+ ```
48
+
49
+ After verifying the TestPyPI package, upload to PyPI:
50
+
51
+ ```bash
52
+ python -m twine upload dist/*
53
+ ```
54
+
55
+ Twine will prompt for credentials. Use a PyPI API token; do not put it in this
56
+ project's source code.
57
+
58
+ ## Security note
59
+
60
+ This package is a simple text transformation, not secure encryption. Do not
61
+ use it to protect sensitive information.
@@ -0,0 +1,7 @@
1
+ README.md
2
+ pyproject.toml
3
+ dextercipher/__init__.py
4
+ dextercipher.egg-info/PKG-INFO
5
+ dextercipher.egg-info/SOURCES.txt
6
+ dextercipher.egg-info/dependency_links.txt
7
+ dextercipher.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ dextercipher
@@ -0,0 +1,14 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dextercipher"
7
+ version = "0.1.0"
8
+ description = "A simple text cipher"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+
12
+ [tool.setuptools.packages.find]
13
+ where = ["."]
14
+ include = ["dextercipher*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+