Skip to main content
PyPI Test Actions Status Build Actions Status Publish Actions Status Documentation Status Code Style: black Coverage Status Total Downloads

cafélytics ☕️

A basic simulation of a coffee operation. Please pardon the mess as this is a work in progress. This is a model that enables forecasting and experimentation under uncertainty, with the goal of steady year-over-year agricultural yields. It can help address questions such as:

  • when should I expand / how much?

  • what will the impacts of various crop diversification strategies be?

  • how can I plan around disaster recovery and mitigation of lost income?

  • what would cooperative-wide yields look like if more farmers joined? what about if some left?

usage (python cli)

The dataset provided can be used for forecasting with

make run

which is equivalent to

python3 simulate.py --farm data/fakeData.csv --years 75 --output testNewFarm.png

and will output this plot, representing the outputs of a collective of farmers over a seventy-five year time span:

https://user-images.githubusercontent.com/40366263/126934177-7353103f-bd90-4a7a-9085-f409a69d1b66.png

Some farmers who joined the cooperative had trees that were already very mature, so this simulation starts back in 1991 to show their hypothetical contributions towards the total yield of the group (in other words, their membership start date is not considered as a factor in this simulation at this time).

contributing

Contributions are welcome. There are many aspects of this project to improve, please see CONTRIBUTING.md for a list of places to start. You may also raise an issue if you have questions or suggestions about this code.

license

This software is released as-is, with no guarantee nor warranty. For more details, please see LICENSE.txt.

demo

Try it in your browser!

Launch Binder

Metadata

Release files for cafelytics 0.1.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 cafelytics 0.1.1
File Size Uploaded
cafelytics-0.1.1.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cafelytics 0.1.1
File Interpreter ABI Platform
cafelytics-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / cafelytics-0.1.1.tar.gz

Download URL cafelytics-0.1.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f84983a53c63922119a7341764130823f58acf399172df9b856af4178101b0d2
BLAKE2b-256 checksum
How to use checksums
9ab898f1d9dc8f9f8921bfc78839dea7576a1d1908dcfe321a594bd39d63bf67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release files / cafelytics-0.1.1-py3-none-any.whl

Download URL cafelytics-0.1.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d03da1de4f81e709d60e47dfd24a0696a95fe3132fe09c5142ab223bb163f4ef
BLAKE2b-256 checksum
How to use checksums
59ff477612e5a582b3b51b7fd291c95a969e65e2ad2a39d3e42c319e198a6f89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
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