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.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poetbricks-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61486b2f6e7ae18901037ed0ae5f9c3ac1bec9d76bf6d4e1565e97617c7667f1
MD5 6f502768ebf79f87527c08bb963c8c2d
BLAKE2b-256 a257b7abfb9c55ea3ffb35031bdaf59bd29e07e0721ccbe62bda8e3217225dc8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for poetbricks-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dac2f681b1ef467081f5cd92bb66cf6d92d4275da5bb24b9eaaae4bc35673ca7
MD5 d63249c3dbba012cb0254c551408714a
BLAKE2b-256 73418e6d6f8e065a5f7dba4cb01c6a84cfa48b9cc3aa2b17e575cd7fa20dd774

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