# Zrb extras
zrb-extras is a [pypi](https://pypi.org) package.
You can install zrb-extras by invoking the following command:
```bash
pip install zrb-extras
```
Once zrb-extras is installed, you can then run it by invoking the following command:
```bash
zrb-extras
```
You can also import `zrb-extras` into your Python program:
```python
from zrb_extras import hello
print(hello())
```
# For maintainers
## Publish to pypi
To publish zrb-extras, you need to have a `Pypi` account:
- Log in or register to [https://pypi.org/](https://pypi.org/)
- Create an API token
You can also create a `TestPypi` account:
- Log in or register to [https://test.pypi.org/](https://test.pypi.org/)
- Create an API token
Once you have your API token, you need to create a `~/.pypirc` file:
```
[distutils]
index-servers =
pypi
testpypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-xxx-xxx
[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-xxx-xxx
```
To publish zrb-extras, you can do the following command:
```bash
zrb project publish-zrb-extras
```
## Updating version
You can update zrb-extras version by modifying the following section in `pyproject.toml`:
```toml
[project]
version = "0.0.2"
```
## Adding dependencies
To add zrb-extras dependencies, you can edit the following section in `pyproject.toml`:
```toml
[project]
dependencies = [
"Jinja2==3.1.2",
"jsons==1.6.3"
]
```
## Adding script
To make zrb-extras executable, you can edit the following section in `pyproject.toml`:
```toml
[project-scripts]
zrb-extras-hello = "zrb_extras.__main__:hello"
```
Now, whenever you run `zrb-extras-hello`, the `main` function on your `__main__.py` will be executed.
Raw data
{
"_id": null,
"home_page": "https://github.com/goFrendiAsgard/zrb-extras",
"name": "zrb-extras",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0.0,>=3.10.0",
"maintainer_email": null,
"keywords": null,
"author": "Go Frendi Gunawan",
"author_email": "gofrendiasgard@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/04/ce/a10a540f5ef2ec0b9004cb1ef0539a473f890a971535736481add31c4190/zrb_extras-0.0.4.tar.gz",
"platform": null,
"description": "# Zrb extras\n\nzrb-extras is a [pypi](https://pypi.org) package.\n\nYou can install zrb-extras by invoking the following command:\n\n```bash\npip install zrb-extras\n```\n\nOnce zrb-extras is installed, you can then run it by invoking the following command:\n\n```bash\nzrb-extras\n```\n\nYou can also import `zrb-extras` into your Python program:\n\n```python\nfrom zrb_extras import hello\n\nprint(hello())\n```\n\n\n# For maintainers\n\n## Publish to pypi\n\nTo publish zrb-extras, you need to have a `Pypi` account:\n\n- Log in or register to [https://pypi.org/](https://pypi.org/)\n- Create an API token\n\nYou can also create a `TestPypi` account:\n\n- Log in or register to [https://test.pypi.org/](https://test.pypi.org/)\n- Create an API token\n\nOnce you have your API token, you need to create a `~/.pypirc` file:\n\n```\n[distutils]\nindex-servers =\n pypi\n testpypi\n\n[pypi]\n repository = https://upload.pypi.org/legacy/\n username = __token__\n password = pypi-xxx-xxx\n[testpypi]\n repository = https://test.pypi.org/legacy/\n username = __token__\n password = pypi-xxx-xxx\n```\n\nTo publish zrb-extras, you can do the following command:\n\n```bash\nzrb project publish-zrb-extras\n```\n\n## Updating version\n\nYou can update zrb-extras version by modifying the following section in `pyproject.toml`:\n\n```toml\n[project]\nversion = \"0.0.2\"\n```\n\n## Adding dependencies\n\nTo add zrb-extras dependencies, you can edit the following section in `pyproject.toml`:\n\n```toml\n[project]\ndependencies = [\n \"Jinja2==3.1.2\",\n \"jsons==1.6.3\"\n]\n```\n\n## Adding script\n\nTo make zrb-extras executable, you can edit the following section in `pyproject.toml`:\n\n```toml\n[project-scripts]\nzrb-extras-hello = \"zrb_extras.__main__:hello\"\n```\n\nNow, whenever you run `zrb-extras-hello`, the `main` function on your `__main__.py` will be executed.\n",
"bugtrack_url": null,
"license": "AGPL-3.0-or-later",
"summary": "Collection of Zrb additional utilities",
"version": "0.0.4",
"project_urls": {
"Documentation": "https://github.com/goFrendiAsgard/zrb-extras",
"Homepage": "https://github.com/goFrendiAsgard/zrb-extras",
"Repository": "https://github.com/goFrendiAsgard/zrb-extras"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c889a394fbed45e4fb6a13f56f51be1c8327ac283caaf0350ea2c08370ecbb54",
"md5": "d397bc21345fb3441207aa2d252ef2fb",
"sha256": "f2ab543a2d03902839d2b66245b3f1df110abc616e9e94fd972f2ad05c4358fd"
},
"downloads": -1,
"filename": "zrb_extras-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d397bc21345fb3441207aa2d252ef2fb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0.0,>=3.10.0",
"size": 357769,
"upload_time": "2024-04-15T13:44:04",
"upload_time_iso_8601": "2024-04-15T13:44:04.994165Z",
"url": "https://files.pythonhosted.org/packages/c8/89/a394fbed45e4fb6a13f56f51be1c8327ac283caaf0350ea2c08370ecbb54/zrb_extras-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "04cea10a540f5ef2ec0b9004cb1ef0539a473f890a971535736481add31c4190",
"md5": "cbb11ad17dd68cd4276765d07fc617c8",
"sha256": "373a90703ab7e1e5c05b08a0ccdcacc7a7c1c9c4ee59bf114886f48357fc2bb7"
},
"downloads": -1,
"filename": "zrb_extras-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "cbb11ad17dd68cd4276765d07fc617c8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0.0,>=3.10.0",
"size": 204959,
"upload_time": "2024-04-15T13:44:07",
"upload_time_iso_8601": "2024-04-15T13:44:07.064618Z",
"url": "https://files.pythonhosted.org/packages/04/ce/a10a540f5ef2ec0b9004cb1ef0539a473f890a971535736481add31c4190/zrb_extras-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-15 13:44:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "goFrendiAsgard",
"github_project": "zrb-extras",
"github_not_found": true,
"lcname": "zrb-extras"
}