makepyz


Namemakepyz JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
Summarya new kind of make tool
upload_time2024-05-27 02:15:07
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords git scm version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # makepyz - the makefile alternative

## Intro

`makepyz` is a simple tool to collect task in a `make.py` file, in the same
spirit of a `Makefile`: it allows you to write portable tasks in python
leveraging an extensive internal library.

## Install

There are two ways to install it, in standalone mode (eg. no dependencies)
good for project that want to not rely on the [makepyz](https://github.com/cav71/makepyz)
project (or they want to keep a tight control on third parties code),
and the usual `pip` installed [package](https://pypi.org/project/makepyz).


### Using pip

You can use pip to install [makepyz](https://github.com/cav71/makepyz):

```shell
pip install makepyz
```

### Stand alone

In standalone mod you can just get the latest `makepyz`:

```shell
curl -LO https://github.com/cav71/makepyz/raw/master/makepyz
```

```shell
echo hello
```

## Using

First you need to create a `make.py` file:

```python
from makepyz import api

@api.task()
def info(arguments: list[str]):
    """this is the hello world"""
    print(  # noqa: T201
        f"""
    Hi!
    python: {sys.executable}
    version: {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}
    cwd: {Path.cwd()}
    arguments: {arguments}
    """)
```

Then:
```shell
makepyz
```


## API

**api.task** - decorates a new makepyz task.

Example:
```python
from make import api

@api.task()
def hello():
    print("Hello world")
```


**api.which** - finds an executablek.
Example:
```python
from make import api

print(api.which("dir"))
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "makepyz",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "git, scm, version",
    "author": null,
    "author_email": "Antonio Cavallo <a.cavallo@cavallinux.eu>",
    "download_url": "https://files.pythonhosted.org/packages/a3/fd/e27abad3f2961183d16527a859e35213a7970310755a3e149e7c829085a9/makepyz-0.0.1.tar.gz",
    "platform": null,
    "description": "# makepyz - the makefile alternative\n\n## Intro\n\n`makepyz` is a simple tool to collect task in a `make.py` file, in the same\nspirit of a `Makefile`: it allows you to write portable tasks in python\nleveraging an extensive internal library.\n\n## Install\n\nThere are two ways to install it, in standalone mode (eg. no dependencies)\ngood for project that want to not rely on the [makepyz](https://github.com/cav71/makepyz)\nproject (or they want to keep a tight control on third parties code),\nand the usual `pip` installed [package](https://pypi.org/project/makepyz).\n\n\n### Using pip\n\nYou can use pip to install [makepyz](https://github.com/cav71/makepyz):\n\n```shell\npip install makepyz\n```\n\n### Stand alone\n\nIn standalone mod you can just get the latest `makepyz`:\n\n```shell\ncurl -LO https://github.com/cav71/makepyz/raw/master/makepyz\n```\n\n```shell\necho hello\n```\n\n## Using\n\nFirst you need to create a `make.py` file:\n\n```python\nfrom makepyz import api\n\n@api.task()\ndef info(arguments: list[str]):\n    \"\"\"this is the hello world\"\"\"\n    print(  # noqa: T201\n        f\"\"\"\n    Hi!\n    python: {sys.executable}\n    version: {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}\n    cwd: {Path.cwd()}\n    arguments: {arguments}\n    \"\"\")\n```\n\nThen:\n```shell\nmakepyz\n```\n\n\n## API\n\n**api.task** - decorates a new makepyz task.\n\nExample:\n```python\nfrom make import api\n\n@api.task()\ndef hello():\n    print(\"Hello world\")\n```\n\n\n**api.which** - finds an executablek.\nExample:\n```python\nfrom make import api\n\nprint(api.which(\"dir\"))\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a new kind of make tool",
    "version": "0.0.1",
    "project_urls": {
        "Issues": "https://github.com/cav71/makepyz/issues",
        "Source": "https://github.com/cav71/makepyz"
    },
    "split_keywords": [
        "git",
        " scm",
        " version"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bce3402f68b63c778c8cb03a183ab1bfec12d25a7ab856f02b29acce55dc45a6",
                "md5": "4de5c028805ae6bd44f3a24b8cb5cf33",
                "sha256": "57f981286593a2d74fc5dc29eb8e380dfffa4ff1fc37e671093332691d246ee3"
            },
            "downloads": -1,
            "filename": "makepyz-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4de5c028805ae6bd44f3a24b8cb5cf33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 21636,
            "upload_time": "2024-05-27T02:15:05",
            "upload_time_iso_8601": "2024-05-27T02:15:05.083383Z",
            "url": "https://files.pythonhosted.org/packages/bc/e3/402f68b63c778c8cb03a183ab1bfec12d25a7ab856f02b29acce55dc45a6/makepyz-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3fde27abad3f2961183d16527a859e35213a7970310755a3e149e7c829085a9",
                "md5": "af1c03193cf1ed100ddb8feddfd24de4",
                "sha256": "cbe523e8d78e756b36e3ca98c1bce7e2546326a7e6ea8fc89aad99002ddc5428"
            },
            "downloads": -1,
            "filename": "makepyz-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "af1c03193cf1ed100ddb8feddfd24de4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 23733,
            "upload_time": "2024-05-27T02:15:07",
            "upload_time_iso_8601": "2024-05-27T02:15:07.194242Z",
            "url": "https://files.pythonhosted.org/packages/a3/fd/e27abad3f2961183d16527a859e35213a7970310755a3e149e7c829085a9/makepyz-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 02:15:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cav71",
    "github_project": "makepyz",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "makepyz"
}
        
Elapsed time: 4.59439s