A simple Python package with get_names, get_cities, and get_countries functions
Project description
py-archons
A simple Python package that provides get_names, get_cities, and get_countries functions.
Installation
pip install py-archons
Usage
from py_archons import get_names, get_cities, get_countries
names = get_names()
print(names) # Output: ["guapo", "bandida"]
cities = get_cities()
print(cities) # Output: ["new york", "london"]
countries = get_countries()
print(countries) # Output: ["united states", "united kingdom"]
Development
To install in development mode:
pip install -e .
Building and Publishing
Automated Publishing (Recommended)
Use the publish.py script for a complete workflow. The script automatically:
- Reads the current version from
version.py - Checks if the version already exists on PyPI
- Prevents duplicate uploads
- Updates version only when specified
# Publish current version from version.py (smart - checks if version exists)
python publish.py
# Test current version with TestPyPI
python publish.py --test
# Just build current version without uploading
python publish.py --build-only
# Update to specific version and publish
python publish.py 0.4.0
# Using shell script (auto-activates venv)
./publish.sh
./publish.sh --test
Manual Publishing
# Edit version in py_archons/version.py, then:
python -m build
python -m twine upload dist/py_archons-*
Version Management
Yanking (Deprecating) Versions
# Yank a version from PyPI (marks as deprecated but keeps available)
python yank_version.py 0.3.0
# Yank from TestPyPI
python yank_version.py 0.3.0 --test
Adding Deprecation Notices
# Get guidance on adding deprecation notices
python deprecate_version.py 0.3.0 "Security issues"
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_archons-0.3.3.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_archons-0.3.3.tar.gz.
File metadata
- Download URL: py_archons-0.3.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
069f7ef88333a1becb61f76ae8405e647773e9e6c59913f35f3d35ea4e8c1010
|
|
| MD5 |
3e51a3775a7fc9ac7e8e827ff7ddd510
|
|
| BLAKE2b-256 |
588651e01ca57a05baff0bfe1bb70ee24f8820331b7032458234955c3a100f4d
|
File details
Details for the file py_archons-0.3.3-py3-none-any.whl.
File metadata
- Download URL: py_archons-0.3.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97ddfb43b7249b804cb80250a95cac91f60e9a78debbdc714814701c236e7c3b
|
|
| MD5 |
08bd8b4dff474573803bd4443d39c3ef
|
|
| BLAKE2b-256 |
fcbb4a95e8a8718b8bf27ae2a31a0b1cde17dea63f9b876ff08b1b40b77434b0
|