Skip to content

PythonChicken123/masterchicken

Repository files navigation

Masterchicken: The original chicken's python pypi package

PyPI version Downloads Coverage GitHub license Documentation Status

MasterChicken is a Python package that provides a robust and efficient way to manage your chicken coop. It offers a comprehensive set of tools and functionalities that make it easier to monitor and control the conditions of your chicken coop, ensuring the health and productivity of your chickens. This amazing package also has an Optimized CSV file reader which can read .csv files with ease and also has a faster speed to calculate math than NumPy.

For the best performance, Use PyPy: https://pypy.org

masterchicken

🔗 Links

GitHub PyPi

Anaconda Docker

Features

  • Faster speed on calculating math
  • The accelerated optimized CSV reader/writer in microseconds!
  • Various versions of python
  • The Backrooms Game: Noclip to the backrooms and try to escape its moist carpet with thousands of infinite rooms to be trapped in, Be Careful: Escape with concentration to dodge entities. Comming Soon
  • Backroom File Extension: can open any .brs file under a second
  • Backrooms engine file load compiler

Chicken Coop Features:

  • Health Monitoring: Keep track of the health status of each chicken in your coop. The package allows you to record and monitor various health parameters, helping you detect any potential health issues early.
  • Feed Management: Manage the feeding schedule of your chickens effectively. The package enables you to set up and modify feeding times, ensuring your chickens are well-fed and healthy.
  • Egg Production Tracking: Monitor the egg production of your chickens. The package provides tools to record and analyze egg production data, helping you optimize productivity.
  • Environment Control: Control the conditions of your chicken coop. The package allows you to adjust parameters like temperature and humidity, creating the ideal environment for your chickens.
  • Achievements: The championship of the chicken production

Installation

Prerequisites: Python 3.8>=

Masterchicken can be installed via pip:

python.exe -m pip install --upgrade --force masterchicken

Masterchicken can be installed using the '--user' args:

python.exe -m pip install --upgrade --force masterchicken

Installing Masterchicken via the GitHub CLI:

gh repo clone PythonChicken123/masterchicken
cd /masterchicken
python.exe setup.py

Installing Masterchicken via Docker:

Release upcoming for Docker

Examples

Basic Coop

from masterchicken import Coop
   
coop = Coop.Coop()
chicken = coop.create(type='egg')
chicken.hatch()
if chicken.get_hatched():
    print("Congratulations!! You have hatched a chicken")

if __name__ == '__main__':
    print(f"Chicken Stats: {chicken.get_status}")

Reading CSV

from masterchicken.OpenCSV import *
import numpy as np

# Path to CSV file
file_path = 'map/chicken.csv'
group_by_column = 'token_id'
# TODO: Rewrite all of the columns in the CSV file on columns_to_print
columns_to_print = np.array(['chicken_name', 'type', 'hatch_date', 'token_id', 'achievements', 'collections',
                             'flying_eligibility', 'drumstick_value'])

if __name__ == '__main__':
    
    data_frame = read_csv(file_path, delimiter=',', quotechar='"', encoding='utf-8', skiprows=0,
                          group_by=group_by_column, columns_to_print=None, group_entire_print=False)
    if data_frame is not None:
        # Convert 'type' column to a list and print
        type_column_as_list = data_frame['type'].tolist()
        print(type_column_as_list)
        print("1. type: " + type_column_as_list[1])
        print("2. type: " + type_column_as_list[2])

Writing CSV

from masterchicken.OpenCSV import *
import numpy as np

if __name__ == '__main__':
    # Path to the CSV file
    file_path = 'map/chicken.csv'
    group_by_column = 'token_id'
    # TODO: Rewrite all of the columns in the CSV file on columns_to_print
    columns_to_print = np.array(
        ['chicken_name', 'breed', 'type', 'hatch_date', 'token_id', 'achievements', 'collections',
         'flying_eligibility', 'current_health', 'max_health', 'abilities', 'age'])
    data_frame = read_csv(file_path, delimiter=',', quotechar='"', encoding='utf-8', skiprows=0,
                          group_by=group_by_column, columns_to_print=None, group_entire_print=False)
    if data_frame is not None:
        type_column_as_list = data_frame['breed'].tolist()
        print(type_column_as_list)
        write_csv(data_frame, column='chicken_name', row=1, value='Pyrastra', file_path=file_path)
        print(data_frame['chicken_name'].tolist())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published