Skip to main content

A package to find out what's best

Project description

bestpy-image

bestpy

License Linting Testing Build & Push Coverage Status GitHub stars

A module to prove your friends (or adversaries) wrong.

Ever needed to decide on what is the best thing out? That's exactly what bestpy does. We may or may not try to make the answers support your view. Here's a quick demo:

>>> best.language
"python"
>>> best.module
"bestpy"

Table of content

Installation

This is simple with pip. Just run the following in your command line or terminal:

pip install bestpy

You can also use your magic powers to get the module from the latest version of the source code using the following:

pip install git+https://github.com/gustavwilliam/bestpy.git@main

Note: you will likely need to restart your terminal before using the module

Dev installation

If you want to contribute to the bot, follow the dev install instructions instead.

Usage

We were kind and made importing it super simple and nice. Just do the following to import bestpy, once the installation is complete:

>>> from bestpy import best

Now you'll be ready to take on any of life's greatest challenges, all with the help of bestpy.

Different ways to access items

You can access items through both attribute and item access.

>>> best.module  # Attribute access
bestpy
>>> best["module"]  # Item access
bestpy

Hard coded answers

Here's how you can find out some hard coded, fundamental laws of the universe:

>>> best.year
1984
>>> best.phone
BlackBerry

Dynamic answers

There are also a few things that may sneakily check your preferences and adjust based on it, like the following. You'll get your current OS back, since you obviously have a good taste in what OS you use.

>>> best.os

Random answers

There are also a few ones that use randomness to find the truth, from a list of answers.

>>> best.name
Guido
>>> best.name
Gustav

If there's something you'd like to see added, feel free to open an issue or submit a PR. The available categories will expand over time, thanks to our awesome contributors.

Contributing

Fantastic that you want to be a part of the project! The project is actively maintained, and accepts issues and pull requests for bug fixes, new "answers" and improvements to the core functionality.

Check out CONTRIBUTING.md to get started!

Final words

Good luck proving what things are actually best. Bestpy is never wrong, so you now know everything you need to use the single source of truth. Feel free to share what you create with bestpy. I can't wait to see what you do!

May the bestpy be with you. The bestpy is strong with this one.

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

bestpy-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

bestpy-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file bestpy-0.1.0.tar.gz.

File metadata

  • Download URL: bestpy-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.11.0-1028-azure

File hashes

Hashes for bestpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5dc94336c1009d7067d10bc23a5b128f3f5806f3ead49f4124b539100ff0d53e
MD5 0ff3f5a7dca798fd5d661c15da6614f0
BLAKE2b-256 64257f9264da4dc6c5e91a5f6feea8eaabdb5aaf7d4fbabfee36e3cc9778ce94

See more details on using hashes here.

File details

Details for the file bestpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bestpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.11.0-1028-azure

File hashes

Hashes for bestpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff468ab59493004fa76a29156474f291af607c8cef411f1f42584ad74cf64b27
MD5 bd99283e59c638143a59e78659cb8786
BLAKE2b-256 57e22ae77d5d92e1bb27cb14541b131c6cc76969d1ebf7f40765a9408bd4fde4

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