Version: 0.1.0
Date: 2026-01-30
Status: ✅ Ready to publish
- Package Name:
code-compass - Version: 0.1.0
- PyPI URL: https://pypi.org/project/code-compass/ (after publishing)
- Install Command:
pip install code-compass
All items completed:
- Optimize
pyproject.tomlwith metadata - Add
__version__to__init__.py - Create
MANIFEST.infor file inclusion - Build distribution packages
- Verify packages with
twine check - Test installation in virtual environment
- Test CLI commands work correctly
$ ls -lh dist/
-rw-rw-r-- 1 ubuntu ubuntu 21K code_compass-0.1.0-py3-none-any.whl
-rw-rw-r-- 1 ubuntu ubuntu 25K code_compass-0.1.0.tar.gz
$ twine check dist/*
Checking dist/code_compass-0.1.0-py3-none-any.whl: PASSED ✅
Checking dist/code_compass-0.1.0.tar.gz: PASSED ✅Test Installation:
$ pip install dist/code_compass-0.1.0-py3-none-any.whl
Successfully installed click-8.3.1 code-compass-0.1.0 ✅
$ code-compass --version
code-compass, version 0.1.0 ✅
$ code-compass --help
Usage: code-compass [OPTIONS] COMMAND [ARGS]...
Code Compass - Fast code map generator for AI coding assistants.
Commands:
clear Clear the index cache.
find Find symbol definitions.
index Index a project's code.
map Generate a code map.
stats Show indexing statistics.
✅ All commands working!If you don't have a PyPI account:
- Go to https://pypi.org/account/register/
- Create an account
- Verify your email
- Go to https://pypi.org/manage/account/token/
- Click "Add API token"
- Name:
code-compass-upload - Scope: "Entire account" (or specific to
code-compassafter first upload) - Copy the token (starts with
pypi-)
Create or edit ~/.pypirc:
[distutils]
index-servers =
pypi
testpypi
[pypi]
username = __token__
password = pypi-YOUR_TOKEN_HERE
[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-YOUR_TESTPYPI_TOKEN_HERESecurity: Make sure this file is only readable by you:
chmod 600 ~/.pypirc# Upload to TestPyPI first
twine upload --repository testpypi dist/*
# Test installation from TestPyPI
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ code-compass
# Test it works
code-compass --version
code-compass --helpcd ~/code-compass
# Upload to PyPI
twine upload dist/*
# You'll see:
# Uploading distributions to https://upload.pypi.org/legacy/
# Uploading code_compass-0.1.0-py3-none-any.whl
# 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.0/21.0 kB • 00:00 • ?
# Uploading code_compass-0.1.0.tar.gz
# 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 25.0/25.0 kB • 00:00 • ?
#
# View at:
# https://pypi.org/project/code-compass/0.1.0/- Visit https://pypi.org/project/code-compass/
- Check that all metadata is correct
- Test installation:
pip install code-compass code-compass --version
-
Add PyPI badge to README:
[](https://pypi.org/project/code-compass/)
-
Update installation instructions:
## Installation ```bash pip install code-compass
-
Commit and push changes:
git add README.md git commit -m "docs: add PyPI installation instructions" git push origin main
git tag -a v0.1.0 -m "Release v0.1.0 - First PyPI release"
git push origin v0.1.0Then create a release on GitHub with the same notes.
Twitter/X:
🚀 Just published Code Compass v0.1.0 to PyPI!
A fast code map generator for AI coding assistants that saves 99%+ tokens.
pip install code-compass
✨ Features:
- 863 files/s indexing speed
- PageRank-based file importance
- Python support (JS/TS coming soon)
#Python #AI #DevTools
https://pypi.org/project/code-compass/
Reddit (r/Python, r/MachineLearning):
Title: [P] Code Compass - Save 99%+ tokens when using AI coding assistants
I built a tool that generates compact code maps for AI assistants like Claude/GPT.
Key features:
- Indexes large projects in seconds (863 files/s on Django)
- Uses PageRank to identify important files
- Saves 99%+ tokens while preserving context
- Simple CLI: `code-compass index . && code-compass map`
Just published v0.1.0 to PyPI: pip install code-compass
GitHub: https://github.com/Xiangyu-Li97/Code-Compass-v0.1.0-MVP
PyPI: https://pypi.org/project/code-compass/
Feedback welcome!
Hacker News:
Title: Code Compass – Fast code map generator for AI coding assistants
https://github.com/Xiangyu-Li97/Code-Compass-v0.1.0-MVP
For future releases:
-
Update version in
code_compass/__init__.py:__version__ = "0.2.0"
-
Update version in
pyproject.toml:version = "0.2.0"
-
Clean old builds:
rm -rf dist/ build/ *.egg-info -
Build new packages:
python3 -m build
-
Upload to PyPI:
twine upload dist/*
Follow Semantic Versioning:
- MAJOR (1.0.0): Breaking changes
- MINOR (0.2.0): New features, backward compatible
- PATCH (0.1.1): Bug fixes
Planned releases:
- v0.1.1: Bug fixes
- v0.2.0: JavaScript/TypeScript support
- v0.3.0: Auto file watching
- v1.0.0: Production-ready, stable API
Solution: You're trying to upload a package that already exists. Either:
- Bump the version number
- Choose a different package name
Solution: Check your API token:
- Make sure it's correctly set in
~/.pypirc - Verify the token hasn't expired
- Create a new token if needed
Solution: Clean build artifacts:
rm -rf build/ dist/ *.egg-info
python3 -m buildSolution:
- Check
[project.scripts]inpyproject.toml - Reinstall:
pip uninstall code-compass && pip install code-compass - Check PATH:
which code-compass
- PyPI Documentation: https://packaging.python.org/
- Twine Documentation: https://twine.readthedocs.io/
- Setuptools Documentation: https://setuptools.pypa.io/
- PEP 621 (pyproject.toml): https://peps.python.org/pep-0621/
Before publishing:
- All tests pass (
./run_all_tests.sh) - Version number updated
- CHANGELOG.md updated (if exists)
- README.md is accurate
- Build packages (
python3 -m build) - Check packages (
twine check dist/*) - Test installation locally
- Upload to TestPyPI (optional)
- Upload to PyPI (
twine upload dist/*) - Verify on PyPI website
- Update GitHub README with PyPI badge
- Create GitHub release
- Announce on social media
After publishing:
- Test
pip install code-compassworks - Test CLI commands work
- Monitor PyPI download stats
- Respond to issues on GitHub
- Plan next release
Everything is prepared and tested. You can now publish Code Compass to PyPI!
Quick publish:
cd ~/code-compass
twine upload dist/*Good luck! 🚀