Skip to main content

A little CLI tool to create requirements.txt file that are compatible with databricks. The produced requirement file can be uploaded to databricks to set up any custom compute.

Project description

poetbricks

A CLI tool to create requirements files that are compatible with databricks from the peorty section of the pypjroject.toml file.

Requirements

  • python >= 3.10
  • requests >= 2.32.2

Testing requirements

  • request-mock >= 1.12.1
  • pytest-mock >=3.14.0
  • pytest >= 8.3.3

Installation

We recommand to use pipx to install the package as follows:

pipx install poetbricks

But its also possible to use pip:

pip install poetbricks

Usage

Run the poetbricks command inside of your poetry project. You need to provede the -v Databricks vmimage version. poetbricks will look for the pyproject.toml file in the current working directory if the argument -i is not set (pointing to the folder containig the pyproject.toml file).

Example

Create the requirement.txt file based on the Databricks 15.3 vmimage version and the pyproject toml.

poetbricks -v 15.3 -i . -w

The -w prevents poetbricks to override a requirements.txt file in -i.

Running Tests

To run the tests use poetry to install all needed dependencies and run the tests.

poetry run pytest -v

Contribute

If you find any problems or have feature requests create an issue or a PR.

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

poetbricks-0.1.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

poetbricks-0.1.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file poetbricks-0.1.2.tar.gz.

File metadata

  • Download URL: poetbricks-0.1.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for poetbricks-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6274746afc15d4db8fade9023d3f936de9a2db726d56e64991ba8b2e30b0fe9b
MD5 533c6de1e0bab03915a4aade92470650
BLAKE2b-256 ce7bf3c4c3350f35db7066bb1cad0e98ef8efa73075621a1d4a0f67e800e0a68

See more details on using hashes here.

File details

Details for the file poetbricks-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: poetbricks-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for poetbricks-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd73cc69d81ad5c21e9baf1bdd70d0359f94a1fb0042aaf0952097614a821e9c
MD5 3c861a1d634df9c7f2d51dce631ed342
BLAKE2b-256 5eef2fd69b9b948affc04b78f0f4e0ea121d639bdc3d672ca52aa86108c4d5d5

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