Skip to main content

crunch-cli - CLI of the CrunchDAO Platform

Project description

CrunchDAO CLI

PyTest

This Python library is designed for the CrunchDAO Platform, offering convenient access to competition's data and enabling effortless submission. When utilized in the command-line interface (CLI), its goal is to deliver a user experience akin to GitHub, enabling you to seamlessly push the code from your local environment.

Installation

Use pip to install the crunch-cli.

pip install crunch-cli --upgrade

Usage

import crunch
crunch = crunch.load_notebook()

# Getting the data
X_train, y_train, X_test = crunch.load_data()

crunch.load_data() accept arguments for read_parquet.

crunch.load_data(
  engine="fastparquet"
)

Submit with Crunch CLI

Usage: crunch push [OPTIONS]

  Send the new submission of your code.

Options:
  -m, --message TEXT      Specify the change of your code. (like a commit
                          message)

  -e, --main-file TEXT    Entrypoint of your code.  [default: main.py]
  --model-directory TEXT  Directory where your model is stored.  [default:
                          resources]

  --help                  Show this message and exit.

Detecting the environment

Detecting whether you are running inside the runner or not, allows you to configure your program more precisely.

import crunch

if crunch.is_inside_runner:
  print("running inside the runner")
else:
  print("running elsewhere")

  model.enable_debug()
  logger.set_level("TRACE")

Competition Links

Contributing

Pull requests are always welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the GitHub repository.

License

MIT

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

crunch_cli-10.10.2.tar.gz (89.4 kB view details)

Uploaded Source

Built Distribution

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

crunch_cli-10.10.2-py3-none-any.whl (118.0 kB view details)

Uploaded Python 3

File details

Details for the file crunch_cli-10.10.2.tar.gz.

File metadata

  • Download URL: crunch_cli-10.10.2.tar.gz
  • Upload date:
  • Size: 89.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crunch_cli-10.10.2.tar.gz
Algorithm Hash digest
SHA256 31098a1ceee541d9e2d8e6543cb5bbcf74499102daa50f4efab820da832d2111
MD5 e2a413c2b02f2f1ef9300467686752bf
BLAKE2b-256 f56f887e1b43fc0a5a137ed9b9622a9d43a9a686cd1646e617c0cde088426e11

See more details on using hashes here.

File details

Details for the file crunch_cli-10.10.2-py3-none-any.whl.

File metadata

  • Download URL: crunch_cli-10.10.2-py3-none-any.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crunch_cli-10.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2fea373f5aa2eed7012c8766889f44bf1e6d81902e0c1f547b08093b13f1aa4
MD5 102032d772a1fa25fbe912c77f7e9e2d
BLAKE2b-256 f6a7c0d923d796569bd04ecb978ff73d59910d6551f3f3c7c263bdb51ad57b6a

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