Skip to main content

Create and run a BigConfig CLI from a language-specific GitHub package.

Project description

bc-pkg

bc-pkg creates or reuses a BigConfig CLI in the current directory, then forwards your command to that CLI.

The PyPI package and the npm package expose the same behavior. The target package can be implemented in Clojure, TypeScript, or Python; bc-pkg infers that language from the pinned GitHub content.

Usage

uvx bc-pkg <owner/repo@ref> package validate
uvx bc-pkg package validate

ref can be a branch name or a full 40-character commit SHA:

uvx bc-pkg bigconfig-ai/once@python package validate
uvx bc-pkg bigconfig-ai/once@2f4e8c0d0b4c4b8f0c3a9f6e2a1b5c7d8e9f0123 package validate

On the first run, bc-pkg resolves the ref to a full SHA and pins it. Later runs omit <owner/repo@ref> and keep using the pinned SHA.

What is created

The launcher copies the target package's root run file into the current directory and writes language-native metadata:

Target language Manifest Runtime command
Clojure deps.edn bb run ...
TypeScript package.json node run ...
Python pyproject.toml uv run python run ...

For Clojure targets, a small bb.edn runtime dependency file is also written so Babashka can load the pinned Git dependency.

If the directory is already initialized for a different repo/ref/SHA, bc-pkg exits with an error instead of updating it implicitly.

Requirements

  • Python launcher: Python >= 3.11.
  • TypeScript target packages: Node.js and npm must already be installed.
  • Python target packages: Python and uv must already be installed.
  • Clojure target packages: bc-pkg downloads pinned Babashka and Temurin JDK versions into a shared user cache and checks/installs git on Linux.

Environment

Variable Effect
GITHUB_TOKEN Used for private GitHub repos or higher API rate limits.
BB_VERSION Override the Babashka version for Clojure targets.
JDK_VERSION Override the Temurin JDK feature version for Clojure targets.

Cache

Babashka and JDK downloads are shared across projects under:

  • macOS/Linux: $XDG_CACHE_HOME/bc-pkg or ~/.cache/bc-pkg
  • Windows: %LOCALAPPDATA%/bc-pkg

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

bc_pkg-1.0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

bc_pkg-1.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file bc_pkg-1.0.1.tar.gz.

File metadata

  • Download URL: bc_pkg-1.0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bc_pkg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0fc4e5ec12f3ee594ef5cbf093557fe5aae5e7e1948259cc0ee7d6f09cb53b9d
MD5 ac2ec83dde07127b1426dfae2a3fed6f
BLAKE2b-256 6c2cba7bdd43b3ee6f5756adbd1a50837520419d893de14992f8dbb1dd6f938e

See more details on using hashes here.

File details

Details for the file bc_pkg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: bc_pkg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bc_pkg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56d71ed0a153d8bbfe7977f70268c858d5da6c1cd692643ece3d03833cea78f3
MD5 fb0f318ea965617dd458c7e479c48fce
BLAKE2b-256 c2784fe6060840394912e07cb30a7461af3764297b658e6785aa481235d24a82

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