Buildfile runs annoying tasks automatically.
Project description
buildfile
Buildfile runs annoying tasks automatically. PyPI Page here
Docs
Installation
Run python -m pip install buildfile
in your terminal.
Usage
You can use buildfile as a command, or as a module.
Example for using as a command:
> python -m buildfile build
Hello
You can specify buildfile filename with the following: python -m buildfile tablename filename
This will run the build
table of the build file, note that the build file must be in the directory you're running the script from, example build file:
(build)
echo Hello
python -m buildfile build temp
is the equivalent of this:
import buildfile
buildfile.run("build", filename="temp")
You can declare variables in the buildfile using:
(table)
variable = some text
echo {_variable_}
some text
You can also declare variables like this:
import buildfile
buildfile.add_var("variable", "some text")
buildfile.run("table")
And then this will also output some text
:
(table)
echo {_variable_}
Changelog
1.1.0
- Add variables in buildfiles and
add_var()
function
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
Built Distribution
File details
Details for the file buildfile-1.1.0.tar.gz
.
File metadata
- Download URL: buildfile-1.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d549a3d77b7ce750b8a673291f200b8ada7d70450d335476f2a2b226674607b |
|
MD5 | 7e5ae0bdc31d9ae40f3ff97ba9ea581d |
|
BLAKE2b-256 | 7921bb62b0f2596272eca792465da60a976d96b33812a19df3d742152b9f8174 |
File details
Details for the file buildfile-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: buildfile-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eaa21c03242094d443c195b283f33add82d91f9d00ddc5072a6cbb95e65ed9e |
|
MD5 | d6af63a9415981670f1ee387c74d4af7 |
|
BLAKE2b-256 | d3a4f66e9cf469d8625a1b0f2d2dec0d758012b290788451067ec4a4963df337 |