8-bit-human 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,19 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .dist/
5
+ build/
6
+ dist/
7
+ .venv/
8
+ venv/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .mypy_cache/
12
+ *.log
13
+ .save/
14
+ savegame.json
15
+ .DS_Store
16
+ .vscode/
17
+ docs/
18
+ # local docs
19
+ /docs/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Yuvraj Singh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.5
2
+ Name: 8-bit-human
3
+ Version: 0.1.0
4
+ Summary: A satirical terminal survival roguelike where RAM is the last human resource.
5
+ Project-URL: Homepage, https://github.com/yuvraj0028/8_bit_human
6
+ Project-URL: Repository, https://github.com/yuvraj0028/8_bit_human
7
+ Project-URL: Issues, https://github.com/yuvraj0028/8_bit_human/issues
8
+ Author-email: Yuvraj Singh <yuvraj.work28@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: ascii,game,roguelike,terminal,textual,tui
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Games/Entertainment :: Role-Playing
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: textual>=0.80.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: build>=1.2; extra == 'dev'
24
+ Requires-Dist: pytest>=8.0; extra == 'dev'
25
+ Requires-Dist: ruff>=0.6; extra == 'dev'
26
+ Requires-Dist: twine>=5.0; extra == 'dev'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # 8-BIT HUMAN
30
+
31
+ *The last human resource is running out.*
32
+
33
+ **Tagline:** In a world full of artificial intelligence, being human is a premium feature.
34
+
35
+ `8-bit-human` is an open-source, retro-style terminal survival roguelike set in an AI-dominated dystopia where **RAM is the most valuable resource**. Explore abandoned compute facilities, fight parody AI agents, manage scarce resources, upgrade your hardware, and survive the memory apocalypse — all from your terminal.
36
+
37
+ ## Concept
38
+ - **Genre:** Survival roguelike (TUI)
39
+ - **Platform:** Linux, macOS, Windows (ANSI-compatible terminals)
40
+ - **Core loop:** Explore → Scavenge RAM/resources → Survive encounters → Upgrade → Defeat boss → Extract
41
+ - **Lose conditions:** `OUT OF MEMORY` (RAM 0) or `HUMANITY LOST` (Humanity 0)
42
+
43
+ ## Status
44
+ Playable prototype with Phase 2/3 iteration features implemented on top of MVP.
45
+ - [Game Plan](docs/GAME_PLAN.md)
46
+ - [MVP Spec](docs/MVP_SPEC.md)
47
+
48
+ ## Stack
49
+ - **Language:** Python 3.12+
50
+ - **TUI:** Textual (+ Rich)
51
+ - **Distribution:** `pip`/`pipx`/`uv` (offline-capable runtime)
52
+
53
+ ## Setup & Run
54
+ ```bash
55
+ # create venv and install (recommended)
56
+ uv venv .venv
57
+ uv pip install -e ".[dev]" -p .venv/bin/python
58
+
59
+ # run
60
+ .venv/bin/8-bit-human
61
+ # or (with venv activated)
62
+ python -m eight_bit_human
63
+ ```
64
+
65
+ Without `uv`, use standard venv/pip:
66
+ ```bash
67
+ python3 -m venv .venv
68
+ source .venv/bin/activate
69
+ pip install -e ".[dev]"
70
+ 8-bit-human
71
+ ```
72
+
73
+ ## Controls
74
+ - Move: Arrow keys / WASD / `hjkl`
75
+ - Wait (recover CPU): `.` or Space
76
+ - Interact / Shop / Event / Ending choice: `e` or Enter
77
+ - **Inspect map:** `x` (move cursor to examine any tile; `x` or `Esc` to exit inspect mode)
78
+ - Scan (if unlocked): `v`
79
+ - Save: `Ctrl+S` (autosaves on menu; finished runs clear save)
80
+ - Help: `?`
81
+ - Menu from game: `q` or `Esc` (exits inspect mode first)
82
+
83
+ ## Features (Current Iteration)
84
+ - **3-sector run progression:** GPU Graveyard → Token Desert → Cloud Kingdom (stats/upgrades carry over)
85
+ - **Core resources:** RAM, CPU, Tokens, Humanity
86
+ - **Enemies:** Leak Slime, Rate Limiter, Prompt Injector, Hallucination Bot, Memory Leak Monster
87
+ - **Bosses:** Context Window Colossus, GPU Overlord, The Model That Cannot Be Stopped (boss spawns on EX; EX is hidden/locked until boss is defeated)
88
+ - **NPC parody encounters:** choice-driven events (Sam All-Tokens, Open Weight collective, Jensen RAMg)
89
+ - **Endings (final sector):** Independent Human, Open-Source Liberation, Corporate Merge, Singularity Merge
90
+ - **Daily challenge:** deterministic daily seed with tuned starting resources
91
+ - **Meta:** local profile/achievements, run stats, shareable ASCII death/victory certificate
92
+ - **Systems:** procedural 55x33 fixed (non-scrollable) maps with large letter-based tile icons, consolidated HUD/INFO panel layout + inspect mode, pickups, shop/upgrades, scan, score/turn tracking, save/load (`~/.8_bit_human/savegame.json`), profile (`~/.8_bit_human/profile.json`)
93
+
94
+ ## Development
95
+ ```bash
96
+ # in project venv
97
+ .venv/bin/python -m compileall src tests
98
+ .venv/bin/python -m pytest -q
99
+ ```
100
+
101
+ ## Design Pillars
102
+ 1. **Resource tension** — every action has a compute cost
103
+ 2. **Retro terminal feel** — readable ASCII/Unicode with graceful fallbacks
104
+ 3. **Satirical AI-era humor** — witty, developer-centric parody
105
+ 4. **Replayability** — procedural runs, builds, and meaningful choices
106
+
107
+ ## License
108
+ [MIT](LICENSE)
@@ -0,0 +1,69 @@
1
+ # Publishing 8-bit-human
2
+
3
+ ## Prerequisites (account-level, do once)
4
+
5
+ 1. **PyPI account**: https://pypi.org/account/register/
6
+ 2. **TestPyPI account**: https://test.pypi.org/account/register/
7
+ 3. Create API tokens:
8
+ - PyPI: https://pypi.org/manage/account/#api-tokens/ (scope: "Entire account" for first upload, then project-scoped)
9
+ - TestPyPI: https://test.pypi.org/manage/account/#api-tokens/
10
+ 4. Save tokens securely (password manager/keyring). Do not commit them.
11
+
12
+ ## Release checklist
13
+
14
+ 1. Update version in **both**:
15
+ - `pyproject.toml` -> `[project].version`
16
+ - `src/eight_bit_human/__init__.py` -> `__version__`
17
+ 2. Run checks:
18
+ ```bash
19
+ .venv/bin/python -m compileall src tests
20
+ .venv/bin/python -m pytest -q
21
+ .venv/bin/python -m ruff check src tests
22
+ .venv/bin/python -m ruff format --check src tests
23
+ ```
24
+ 3. Commit and tag:
25
+ ```bash
26
+ git add -A
27
+ git commit -m "Release vX.Y.Z"
28
+ git tag vX.Y.Z
29
+ git push origin main --tags
30
+ ```
31
+
32
+ ## Build
33
+
34
+ ```bash
35
+ rm -rf dist build src/*.egg-info
36
+ .venv/bin/python -m pip install --upgrade build twine
37
+ .venv/bin/python -m build
38
+ .venv/bin/python -m twine check dist/*
39
+ ```
40
+
41
+ ## Upload to TestPyPI (recommended first)
42
+
43
+ ```bash
44
+ .venv/bin/python -m twine upload --repository testpypi dist/*
45
+ # username: __token__
46
+ # password: <your TestPyPI token, pypi-...>
47
+ ```
48
+
49
+ Test install:
50
+
51
+ ```bash
52
+ python -m pip install --index-url https://test.pypi.org/simple/ \
53
+ --extra-index-url https://pypi.org/simple/ 8-bit-human
54
+ 8-bit-human
55
+ ```
56
+
57
+ ## Upload to PyPI
58
+
59
+ ```bash
60
+ .venv/bin/python -m twine upload dist/*
61
+ # username: __token__
62
+ # password: <your PyPI token, pypi-...>
63
+ ```
64
+
65
+ ## After publish
66
+
67
+ - Verify: https://pypi.org/project/8-bit-human/
68
+ - Install: `pip install 8-bit-human` or `uv tool install 8-bit-human`
69
+ - Create a GitHub release for the tag.
@@ -0,0 +1,80 @@
1
+ # 8-BIT HUMAN
2
+
3
+ *The last human resource is running out.*
4
+
5
+ **Tagline:** In a world full of artificial intelligence, being human is a premium feature.
6
+
7
+ `8-bit-human` is an open-source, retro-style terminal survival roguelike set in an AI-dominated dystopia where **RAM is the most valuable resource**. Explore abandoned compute facilities, fight parody AI agents, manage scarce resources, upgrade your hardware, and survive the memory apocalypse — all from your terminal.
8
+
9
+ ## Concept
10
+ - **Genre:** Survival roguelike (TUI)
11
+ - **Platform:** Linux, macOS, Windows (ANSI-compatible terminals)
12
+ - **Core loop:** Explore → Scavenge RAM/resources → Survive encounters → Upgrade → Defeat boss → Extract
13
+ - **Lose conditions:** `OUT OF MEMORY` (RAM 0) or `HUMANITY LOST` (Humanity 0)
14
+
15
+ ## Status
16
+ Playable prototype with Phase 2/3 iteration features implemented on top of MVP.
17
+ - [Game Plan](docs/GAME_PLAN.md)
18
+ - [MVP Spec](docs/MVP_SPEC.md)
19
+
20
+ ## Stack
21
+ - **Language:** Python 3.12+
22
+ - **TUI:** Textual (+ Rich)
23
+ - **Distribution:** `pip`/`pipx`/`uv` (offline-capable runtime)
24
+
25
+ ## Setup & Run
26
+ ```bash
27
+ # create venv and install (recommended)
28
+ uv venv .venv
29
+ uv pip install -e ".[dev]" -p .venv/bin/python
30
+
31
+ # run
32
+ .venv/bin/8-bit-human
33
+ # or (with venv activated)
34
+ python -m eight_bit_human
35
+ ```
36
+
37
+ Without `uv`, use standard venv/pip:
38
+ ```bash
39
+ python3 -m venv .venv
40
+ source .venv/bin/activate
41
+ pip install -e ".[dev]"
42
+ 8-bit-human
43
+ ```
44
+
45
+ ## Controls
46
+ - Move: Arrow keys / WASD / `hjkl`
47
+ - Wait (recover CPU): `.` or Space
48
+ - Interact / Shop / Event / Ending choice: `e` or Enter
49
+ - **Inspect map:** `x` (move cursor to examine any tile; `x` or `Esc` to exit inspect mode)
50
+ - Scan (if unlocked): `v`
51
+ - Save: `Ctrl+S` (autosaves on menu; finished runs clear save)
52
+ - Help: `?`
53
+ - Menu from game: `q` or `Esc` (exits inspect mode first)
54
+
55
+ ## Features (Current Iteration)
56
+ - **3-sector run progression:** GPU Graveyard → Token Desert → Cloud Kingdom (stats/upgrades carry over)
57
+ - **Core resources:** RAM, CPU, Tokens, Humanity
58
+ - **Enemies:** Leak Slime, Rate Limiter, Prompt Injector, Hallucination Bot, Memory Leak Monster
59
+ - **Bosses:** Context Window Colossus, GPU Overlord, The Model That Cannot Be Stopped (boss spawns on EX; EX is hidden/locked until boss is defeated)
60
+ - **NPC parody encounters:** choice-driven events (Sam All-Tokens, Open Weight collective, Jensen RAMg)
61
+ - **Endings (final sector):** Independent Human, Open-Source Liberation, Corporate Merge, Singularity Merge
62
+ - **Daily challenge:** deterministic daily seed with tuned starting resources
63
+ - **Meta:** local profile/achievements, run stats, shareable ASCII death/victory certificate
64
+ - **Systems:** procedural 55x33 fixed (non-scrollable) maps with large letter-based tile icons, consolidated HUD/INFO panel layout + inspect mode, pickups, shop/upgrades, scan, score/turn tracking, save/load (`~/.8_bit_human/savegame.json`), profile (`~/.8_bit_human/profile.json`)
65
+
66
+ ## Development
67
+ ```bash
68
+ # in project venv
69
+ .venv/bin/python -m compileall src tests
70
+ .venv/bin/python -m pytest -q
71
+ ```
72
+
73
+ ## Design Pillars
74
+ 1. **Resource tension** — every action has a compute cost
75
+ 2. **Retro terminal feel** — readable ASCII/Unicode with graceful fallbacks
76
+ 3. **Satirical AI-era humor** — witty, developer-centric parody
77
+ 4. **Replayability** — procedural runs, builds, and meaningful choices
78
+
79
+ ## License
80
+ [MIT](LICENSE)
@@ -0,0 +1,57 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.25"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "8-bit-human"
7
+ version = "0.1.0"
8
+ description = "A satirical terminal survival roguelike where RAM is the last human resource."
9
+ readme = "README.md"
10
+ requires-python = ">=3.12"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Yuvraj Singh", email = "yuvraj.work28@gmail.com" }]
14
+ keywords = ["roguelike", "terminal", "textual", "tui", "game", "ascii"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Environment :: Console",
18
+ "Intended Audience :: End Users/Desktop",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Topic :: Games/Entertainment :: Role-Playing",
24
+ ]
25
+ dependencies = [
26
+ "textual>=0.80.0",
27
+ ]
28
+
29
+ [project.optional-dependencies]
30
+ dev = [
31
+ "pytest>=8.0",
32
+ "ruff>=0.6",
33
+ "build>=1.2",
34
+ "twine>=5.0",
35
+ ]
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/yuvraj0028/8_bit_human"
39
+ Repository = "https://github.com/yuvraj0028/8_bit_human"
40
+ Issues = "https://github.com/yuvraj0028/8_bit_human/issues"
41
+
42
+ [project.scripts]
43
+ 8-bit-human = "eight_bit_human.__main__:main"
44
+
45
+ [tool.hatch.build.targets.wheel]
46
+ packages = ["src/eight_bit_human"]
47
+
48
+ [tool.pytest.ini_options]
49
+ testpaths = ["tests"]
50
+ pythonpath = ["src"]
51
+
52
+ [tool.ruff]
53
+ line-length = 100
54
+ target-version = "py312"
55
+
56
+ [tool.ruff.lint]
57
+ select = ["E", "F", "I"]
@@ -0,0 +1,4 @@
1
+ """8-BIT HUMAN - terminal survival roguelike."""
2
+
3
+ __all__ = ["__version__"]
4
+ __version__ = "0.1.0"
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ import sys
4
+
5
+
6
+ def main() -> int:
7
+ try:
8
+ from .app import main as run_app
9
+ except ModuleNotFoundError as e:
10
+ if e.name == "textual" or (e.name and e.name.startswith("textual.")):
11
+ print(
12
+ "Missing dependency: textual\n\n"
13
+ "Install dependencies and run with:\n"
14
+ " python -m pip install -e .\n"
15
+ " 8-bit-human\n\n"
16
+ "Or for local dev:\n"
17
+ " python -m pip install textual\n"
18
+ " PYTHONPATH=src python3 -m eight_bit_human",
19
+ file=sys.stderr,
20
+ )
21
+ return 1
22
+ raise
23
+ return run_app()
24
+
25
+
26
+ if __name__ == "__main__":
27
+ raise SystemExit(main())