Skip to main content

Tackle is a declarative DSL for building modular workflows and code generators. Tool is plugins based and can easily be extended by writing additional hooks or importing external providers that can be turned into a self documenting CLI, all out of yaml, json, toml.

Project description

tackle

pypi python codecov

tackle is an experimental DSL built as a fork of cookiecutter written in documents such as json, yaml, or toml with primitives of a general purpose programming language including functions, structs, methods, and types with rich control flow. It turns a config file into self documenting CLI in a concise declarative syntax.

Core to the language is the notion of a hook which is a pydantic BaseModel under the hood. These hooks can be created, called, or combined in documents and / or python with inheritance and composition. Tackle ships with over 100 native hooks to perform rudimentary tasks from prompting users for CLI inputs, reading / manipulating / writing data to and from files, to rendering templates for code generation / schema translations.

Major syntax changes will be made before the language is officially released and thus using the language is discouraged without reaching out first by leaving issues in this repo. A formal spec is under active development but has sort of taken the back seat while Rob is working on sudoblock.

=< v0.6.0

greeter(target str = 'world')<-:
  ->: print Hello {{target}}

Future

def greeter(target str = 'world'):
  =: print Hello {{target}}

When the syntax is stable, this project will be formally released. Please reach out via discord if you want to talk directly about it in the meantime.

Code of Conduct

Everyone interacting in the tackle project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.

Credit

Special thanks to audreyfeldroy for creating cookiecutter, the basis for this project. Would not have been possible without it and other core dependencies like pydantic and jinja.

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

tackle-0.6.1.tar.gz (259.7 kB view details)

Uploaded Source

Built Distribution

tackle-0.6.1-py2.py3-none-any.whl (295.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tackle-0.6.1.tar.gz.

File metadata

  • Download URL: tackle-0.6.1.tar.gz
  • Upload date:
  • Size: 259.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for tackle-0.6.1.tar.gz
Algorithm Hash digest
SHA256 13481995ec2b596331e14c9c73b6157d360cccc9f94e75f300a0df82d0724103
MD5 b330c9d0d44727dc015c10b091e75c61
BLAKE2b-256 e0cbdc364efd4fd90dca11bd08f101fd4d77a05096b598ee14a0ab71539c00ce

See more details on using hashes here.

File details

Details for the file tackle-0.6.1-py2.py3-none-any.whl.

File metadata

  • Download URL: tackle-0.6.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 295.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for tackle-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 00f5cd99401168d783c0c46e18f98ae2562216aed595b6683891ace53034cf02
MD5 c319d5861561bcb69fb913e9a63b1c7c
BLAKE2b-256 d68eceb4c157ccb69c79e9dfd9db91aa24766a861988e83c22a095d4bc8335a3

See more details on using hashes here.

Supported by

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