A command line pet that you can feed, clean, and play with!
Project description
Python Package Exercise: Package Bear 🐻🐻❄️🐼
Contents
buildabear.py
Contains all functions used to initialize, interact, and play with bear.
Team Members
Jasmine Fan https://github.com/jasmine7310
Sophia Wang https://github.com/s-m-wang
Tadelin De Leon https://github.com/TadelinD
Alex Wang https://github.com/alw9411
Package Description
Your own command line bear!
Configuration
Before installing if you don't have pipenv:
pip install pipenv
Then Activate pipenv:
pipenv shell
On a new python project run:
pip install buildabear-jasmine7310-s-m-wang-TadelinD-alw9411
First use the command below for the welcome message
python -m buildabearpackage
Then use the command below to initialize the package
python -m buildabearpackage start
Interacting with Pet
python -m buildabearpackage status
python -m buildabearpackage "change name"
python -m buildabearpackage work X # X being an integer number!!
python -m buildabearpackage feed
python -m buildabearpackage clean
python -m buildabearpackage play
python -m buildabearpackage "buy food" X # X being an integer number!!
Set Up Environment Variables and Starter Data
To use the package you are going to need to create a file called Data.txt in the same directory in which you will use the package.
In this txt file you will need to copy and paste the following:
happiness:100
hunger:100
cleanliness:100
food:10
budget:1000
name:Bear
initialized:False
lastChecked:0
Make sure that there is no new line after inputting this information.
Link to Our Package Page
Project Contribution
Virtual Environment Setup
pip install pipenv
pipenv install pytest
pytest
pipenv shell
Uploading to Pypi using Twine
If there are *.egg-info and dist directories delete them before proceeding. Be sure to update version number.
pip install build twine
python -m build
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5.tar.gz.
File metadata
- Download URL: buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aa40b3e08ddace2a44bab221d80dd6bc21decff58b33f9653ec8f48c21e8095
|
|
| MD5 |
a2fb4766a918caef7330d350b23c206a
|
|
| BLAKE2b-256 |
b3f0c56caf7b82c4bebb3226cebb08c1cc61f3c3c6a72e92ea2ff6528e831080
|
File details
Details for the file buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5-py3-none-any.whl.
File metadata
- Download URL: buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cda380c42e3db91ace8f240dae02588cc78e15275b368102630d813a998fb21
|
|
| MD5 |
2471e5412fb703ad819daa61d25215e4
|
|
| BLAKE2b-256 |
50bfaa05412dbc8952601dd731812464d8ac0a0f1b0f87a2d360d80fe2f5eb6e
|