petrus


Namepetrus JSON
Version 0.4.53 PyPI version JSON
download
home_pageNone
SummaryCreate/autocomplete/format a python project and upload it to PyPI.
upload_time2025-01-14 22:07:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseThe MIT License (MIT) Copyright (c) 2024 Johannes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======
petrus
======

Overview
--------

Create/autocomplete/format a python project and upload it to PyPI.

Installation
------------

To install ``petrus``, you can use ``pip``. Open your terminal and run:

.. code-block:: bash

    pip install petrus

Usage
-----

The ``petrus`` package provides the functions ``main`` and ``run``. ``main`` provides the CLI. To familiarize us with ``petrus`` it may be a good starting point to use the help option of main:

.. code-block:: bash

    # bash
    python3 -m petrus -h

or

.. code-block:: python

    # python
    import petrus
    petrus.main(["-h"])

The arguments of ``main`` can also be used analogously on the function ``run`` (except for the flags ``-h`` and ``-V``).

.. code-block:: python

    # The following lines are all identical:
    petrus.main(["--author", "John Doe", "path/to/project"])
    petrus.main(["--author=John Doe", "path/to/project"])
    petrus.main(["--author", "John Doe", "--", "path/to/project"])
    petrus.run("path/to/project", author="John Doe")
    petrus.run(author="John Doe", path="path/to/project")
    petrus.run("path/to/project", author="John Doe", email=None)

If an option is not used (i.e. given the value ``None``) it defaults to the value provided in the ``default`` table in the included file ``config.toml`` (if existent).

.. code-block:: toml

    [default]
    author = "Johannes"
    description = ""
    email = "johannes-programming@mailfence.com"
    github = "johannes-programming"
    requires_python = "{preset} \\| {current}"
    v = "bump(2, 1)"
    year = "{current}"

    [general]
    root = ""

If that fails the arguments default to the empty string. The empty string itself usually results in skipping whatever steps required the information.
The ``general.root`` setting allows to change directory even before ``path`` is applied.
It is recommended to create a ``config.toml`` file inside the ``petrus`` package before usage.

License
-------

This project is licensed under the MIT License.

Links
-----

* `Download <https://pypi.org/project/petrus/#files>`_
* `Index <https://pypi.org/project/petrus>`_
* `Source <https://github.com/johannes-programming/petrus>`_
* `Website <http://www.petrus.johannes-programming.online>`_

Credits
-------

* Author: `Johannes <http://www.johannes-programming.online>`_
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_

Thank you for using ``petrus``!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "petrus",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Johannes <johannes-programming@mailfence.com>",
    "download_url": "https://files.pythonhosted.org/packages/9a/82/5a5c2d715cb8da78c22fd6f62ea4fe42fc0ffc8d63846e03f6564c2feaa6/petrus-0.4.53.tar.gz",
    "platform": null,
    "description": "======\npetrus\n======\n\nOverview\n--------\n\nCreate/autocomplete/format a python project and upload it to PyPI.\n\nInstallation\n------------\n\nTo install ``petrus``, you can use ``pip``. Open your terminal and run:\n\n.. code-block:: bash\n\n    pip install petrus\n\nUsage\n-----\n\nThe ``petrus`` package provides the functions ``main`` and ``run``. ``main`` provides the CLI. To familiarize us with ``petrus`` it may be a good starting point to use the help option of main:\n\n.. code-block:: bash\n\n    # bash\n    python3 -m petrus -h\n\nor\n\n.. code-block:: python\n\n    # python\n    import petrus\n    petrus.main([\"-h\"])\n\nThe arguments of ``main`` can also be used analogously on the function ``run`` (except for the flags ``-h`` and ``-V``).\n\n.. code-block:: python\n\n    # The following lines are all identical:\n    petrus.main([\"--author\", \"John Doe\", \"path/to/project\"])\n    petrus.main([\"--author=John Doe\", \"path/to/project\"])\n    petrus.main([\"--author\", \"John Doe\", \"--\", \"path/to/project\"])\n    petrus.run(\"path/to/project\", author=\"John Doe\")\n    petrus.run(author=\"John Doe\", path=\"path/to/project\")\n    petrus.run(\"path/to/project\", author=\"John Doe\", email=None)\n\nIf an option is not used (i.e. given the value ``None``) it defaults to the value provided in the ``default`` table in the included file ``config.toml`` (if existent).\n\n.. code-block:: toml\n\n    [default]\n    author = \"Johannes\"\n    description = \"\"\n    email = \"johannes-programming@mailfence.com\"\n    github = \"johannes-programming\"\n    requires_python = \"{preset} \\\\| {current}\"\n    v = \"bump(2, 1)\"\n    year = \"{current}\"\n\n    [general]\n    root = \"\"\n\nIf that fails the arguments default to the empty string. The empty string itself usually results in skipping whatever steps required the information.\nThe ``general.root`` setting allows to change directory even before ``path`` is applied.\nIt is recommended to create a ``config.toml`` file inside the ``petrus`` package before usage.\n\nLicense\n-------\n\nThis project is licensed under the MIT License.\n\nLinks\n-----\n\n* `Download <https://pypi.org/project/petrus/#files>`_\n* `Index <https://pypi.org/project/petrus>`_\n* `Source <https://github.com/johannes-programming/petrus>`_\n* `Website <http://www.petrus.johannes-programming.online>`_\n\nCredits\n-------\n\n* Author: `Johannes <http://www.johannes-programming.online>`_\n* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_\n\nThank you for using ``petrus``!\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2024 Johannes  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Create/autocomplete/format a python project and upload it to PyPI.",
    "version": "0.4.53",
    "project_urls": {
        "Documentation": "https://pypi.org/project/petrus",
        "Download": "https://pypi.org/project/petrus/#files",
        "Index": "https://pypi.org/project/petrus",
        "Source": "https://github.com/johannes-programming/petrus",
        "Website": "http://www.petrus.johannes-programming.online"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f362907210137f9843180bc106410ce98c30562428cd04d07f31d08d6eba0ed4",
                "md5": "f0c60bd4a5b874a9f02901bf25071fbd",
                "sha256": "a9eb4db49ca2c124460de2fe22187de768685c789d3cdc87e2b5b78d04a53b38"
            },
            "downloads": -1,
            "filename": "petrus-0.4.53-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f0c60bd4a5b874a9f02901bf25071fbd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 19555,
            "upload_time": "2025-01-14T22:07:49",
            "upload_time_iso_8601": "2025-01-14T22:07:49.665992Z",
            "url": "https://files.pythonhosted.org/packages/f3/62/907210137f9843180bc106410ce98c30562428cd04d07f31d08d6eba0ed4/petrus-0.4.53-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a825a5c2d715cb8da78c22fd6f62ea4fe42fc0ffc8d63846e03f6564c2feaa6",
                "md5": "f2940b3e03ebd655f49f5b39ef3c2ae7",
                "sha256": "0d83edbdb5d22aaec99f1aa73fa6c500aca37d04a7cc0ccffbaa7b919fe6af7a"
            },
            "downloads": -1,
            "filename": "petrus-0.4.53.tar.gz",
            "has_sig": false,
            "md5_digest": "f2940b3e03ebd655f49f5b39ef3c2ae7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 15531,
            "upload_time": "2025-01-14T22:07:52",
            "upload_time_iso_8601": "2025-01-14T22:07:52.207326Z",
            "url": "https://files.pythonhosted.org/packages/9a/82/5a5c2d715cb8da78c22fd6f62ea4fe42fc0ffc8d63846e03f6564c2feaa6/petrus-0.4.53.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-14 22:07:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "johannes-programming",
    "github_project": "petrus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "petrus"
}
        
Elapsed time: 0.53935s