Skip to main content

e-pet

PyPI - Version Pepy Total Downlods

A CLI Virtual Pet Companion

Installation

pip install e-pet

Local installation:

pip install .

Usage

When installed using pip:

e-pet

Local development:

python e-pet.py

Interface

The CLI interface should be an ASCII art/animation of the pet, and below various actions that the user can select. The user should be able to select the option they would like to go for using arrow keys (the selected option is highlighted) and then pressing enter, or by selecting the corresponding option number on their keyboard.

Game Mechanics

The pet has the following attributes:

  • name (randomly generated; can be re-generated at any time by the user)
  • age (starts at 0, increases as the user plays)
  • sex (M, F, ??; randomly assigned, can be re-generated at any time by the user)
  • Health (between 0 and 5)
  • Happiness (between 0 and 5)
  • Despair (between 0 and 5)
  • Wealth (unbounded number, starts at 100)

The user can interact with the pet in the following main ways:

  • Feeding
  • Playing
  • Talking

Each option has many different dialog trees. The dialog trees are stored as JSON files. Throughout the dialog trees, selecting various options may have effects on any of the pet's attributes (health, ahppiness, ...). There may be multiple possible outcome at any point of a tree, in which case randomness is used to determine which path to let the user continue on.

Architecture

Game data is saved in a JSON file in the current directory. When starting, the app looks for a current save, if it doesn't find one it creates a new one. The game auto-saves after each action.

The app runs as a Python application without internet connection.

Metadata

Release files for e-pet 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for e-pet 0.3.1
File Size Uploaded Provenance Actions
e_pet-0.3.1.tar.gz 30.3 kB With provenance Details for e_pet-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for e-pet 0.3.1
File Interpreter ABI Platform Actions
e_pet-0.3.1-py3-none-any.whl Python 3 none any Details for e_pet-0.3.1-py3-none-any.whl

Total release size: 72.3 kB

Release files / e_pet-0.3.1.tar.gz

Download URL e_pet-0.3.1.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7ca0a85089cf52e3052981f01c670e65459bcf896d96755ca6d38b8aaf13a749
BLAKE2b-256 checksum
How to use checksums
002529c3a42d8cb56326166214369f7c3849976c5a7460dcacaca2fee095d08e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.

Transparency log

Release files / e_pet-0.3.1-py3-none-any.whl

Download URL e_pet-0.3.1-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dca92bdb421c15374d2710177862147ca7befa7126db1b10ea5ed4326d284d07
BLAKE2b-256 checksum
How to use checksums
564ed8c0ba6f9622c18c8188b7336b678b33ff3c12051de9206f7c3231c1a0e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.

Transparency log

Security for e-pet 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for e_pet-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page