Skip to main content

A command line pet that you can feed, clean, and play with!

Project description

Python build & test

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

Package Bear: buildabear

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5.tar.gz.

File metadata

File hashes

Hashes for buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8aa40b3e08ddace2a44bab221d80dd6bc21decff58b33f9653ec8f48c21e8095
MD5 a2fb4766a918caef7330d350b23c206a
BLAKE2b-256 b3f0c56caf7b82c4bebb3226cebb08c1cc61f3c3c6a72e92ea2ff6528e831080

See more details on using hashes here.

File details

Details for the file buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for buildabear_jasmine7310_s_m_wang_tadelind_alw9411-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6cda380c42e3db91ace8f240dae02588cc78e15275b368102630d813a998fb21
MD5 2471e5412fb703ad819daa61d25215e4
BLAKE2b-256 50bfaa05412dbc8952601dd731812464d8ac0a0f1b0f87a2d360d80fe2f5eb6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page