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-5.0.0b7.tar.gz (65.3 kB view details)

Uploaded Source

Built Distribution

crunch_cli-5.0.0b7-py3-none-any.whl (88.9 kB view details)

Uploaded Python 3

File details

Details for the file crunch_cli-5.0.0b7.tar.gz.

File metadata

  • Download URL: crunch_cli-5.0.0b7.tar.gz
  • Upload date:
  • Size: 65.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for crunch_cli-5.0.0b7.tar.gz
Algorithm Hash digest
SHA256 39b9c3d78525ba555a5bd74dedbb4056b195f25bf9b310acd13056d640ef716a
MD5 ff4966a3505b458d492ea47b94b0f347
BLAKE2b-256 1e62f4e54ecfc91facb2e0031bb5a031ce3e3e929c978cb055b6e7525c2cb5fe

See more details on using hashes here.

File details

Details for the file crunch_cli-5.0.0b7-py3-none-any.whl.

File metadata

  • Download URL: crunch_cli-5.0.0b7-py3-none-any.whl
  • Upload date:
  • Size: 88.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for crunch_cli-5.0.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 01df62dd8292bee5cc734f058118548923775c8d2482cfba15f008d8d0df17af
MD5 b199301b42aec9cd9c94add99b6d31c9
BLAKE2b-256 e639a73cdd359227fa1de1193e30f0074f7086cdb1a71977d58442a60443109c

See more details on using hashes here.

Supported by

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