rusttypes


Namerusttypes JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://hendrikboeck.github.io/rusttypes-p3
SummaryExtra Datatypes for Python 3
upload_time2024-04-22 14:31:21
maintainerNone
docs_urlNone
authorHendrik Boeck
requires_python<4.0,>=3.11
licenseBSD-3-Clause
keywords rusttypes rust result option types python datastructures datatypes collections
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `rusttypes-py3` - The power of Rust in Python

- [`rusttypes-py3` - The power of Rust in Python](#rusttypes-py3---the-power-of-rust-in-python)
  - [Why?](#why)
  - [Getting Started](#getting-started)
  - [Documentation](#documentation)
  - [License (_BSD 3-Clause License_)](#license-bsd-3-clause-license)


## Why?

>   Bring the power of Rust to Python! Kind of...

``rusttypes`` is a Python 3 library that provides a set of utilities to write
Python code that is more Rust-like. This includes:

- A ``Result`` type that can be used to return either a value or an error.
- A ``Option`` type that can be used to return either a value or nothing.

It implements all the basic operations that you would expect from these types,
such as ``map``, ``and_then``, ``or_else``, etc.. At least as far as Python
allows it, and I was able to implement it. (:

## Getting Started

Install using `pip`:

```
pip install rusttypes
```

Install using `poetry` CLI:

```
poetry add rusttypes
```

or using `pyproject.toml`:

```toml
[tool.poetry.dependencies]
rusttypes = "^0.1.0"
```

## Documentation

Sphinx Documentation at: [https://hendrikboeck.github.io/rusttypes/](https://hendrikboeck.github.io/rusttypes/)

## License (_BSD 3-Clause License_)

Copyright (c) 2024, Hendrik Böck <<hendrikboeck.dev@protonmail.com>>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://hendrikboeck.github.io/rusttypes-p3",
    "name": "rusttypes",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": "rusttypes, rust, result, option, types, python, datastructures, datatypes, collections",
    "author": "Hendrik Boeck",
    "author_email": "hendrikboeck.dev@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e5/36/481e24fbee987526b9494b51fd50671262538f1387129d8b39dce0aad6ce/rusttypes-0.1.0.tar.gz",
    "platform": null,
    "description": "# `rusttypes-py3` - The power of Rust in Python\n\n- [`rusttypes-py3` - The power of Rust in Python](#rusttypes-py3---the-power-of-rust-in-python)\n  - [Why?](#why)\n  - [Getting Started](#getting-started)\n  - [Documentation](#documentation)\n  - [License (_BSD 3-Clause License_)](#license-bsd-3-clause-license)\n\n\n## Why?\n\n>   Bring the power of Rust to Python! Kind of...\n\n``rusttypes`` is a Python 3 library that provides a set of utilities to write\nPython code that is more Rust-like. This includes:\n\n- A ``Result`` type that can be used to return either a value or an error.\n- A ``Option`` type that can be used to return either a value or nothing.\n\nIt implements all the basic operations that you would expect from these types,\nsuch as ``map``, ``and_then``, ``or_else``, etc.. At least as far as Python\nallows it, and I was able to implement it. (:\n\n## Getting Started\n\nInstall using `pip`:\n\n```\npip install rusttypes\n```\n\nInstall using `poetry` CLI:\n\n```\npoetry add rusttypes\n```\n\nor using `pyproject.toml`:\n\n```toml\n[tool.poetry.dependencies]\nrusttypes = \"^0.1.0\"\n```\n\n## Documentation\n\nSphinx Documentation at: [https://hendrikboeck.github.io/rusttypes/](https://hendrikboeck.github.io/rusttypes/)\n\n## License (_BSD 3-Clause License_)\n\nCopyright (c) 2024, Hendrik B\u00f6ck <<hendrikboeck.dev@protonmail.com>>\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\nlist of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\nthis list of conditions and the following disclaimer in the documentation\nand/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors\nmay be used to endorse or promote products derived from this software without\nspecific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Extra Datatypes for Python 3",
    "version": "0.1.0",
    "project_urls": {
        "Documentation": "https://hendrikboeck.github.io/rusttypes-py3",
        "Homepage": "https://hendrikboeck.github.io/rusttypes-p3",
        "Repository": "https://github.com/hendrikboeck/rusttypes-py3"
    },
    "split_keywords": [
        "rusttypes",
        " rust",
        " result",
        " option",
        " types",
        " python",
        " datastructures",
        " datatypes",
        " collections"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24575a695284e69e7698ddadd62ac4e12a9f262072bb59cf26b320f8932d3e65",
                "md5": "f3d9a854ee13044ae3c3c67a26eaad35",
                "sha256": "eebaf029a4f341a68c22f86e3003bb0488c4e638e544329cd3c640628ae7f9f5"
            },
            "downloads": -1,
            "filename": "rusttypes-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f3d9a854ee13044ae3c3c67a26eaad35",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 18920,
            "upload_time": "2024-04-22T14:31:20",
            "upload_time_iso_8601": "2024-04-22T14:31:20.195443Z",
            "url": "https://files.pythonhosted.org/packages/24/57/5a695284e69e7698ddadd62ac4e12a9f262072bb59cf26b320f8932d3e65/rusttypes-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e536481e24fbee987526b9494b51fd50671262538f1387129d8b39dce0aad6ce",
                "md5": "00e0b1be6b08bae9fd25c1899b9aa422",
                "sha256": "56bcad6e6e71cdc3c44907008be7734772fee8247d891d8cd6f1afe81fc53b58"
            },
            "downloads": -1,
            "filename": "rusttypes-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "00e0b1be6b08bae9fd25c1899b9aa422",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 15441,
            "upload_time": "2024-04-22T14:31:21",
            "upload_time_iso_8601": "2024-04-22T14:31:21.799627Z",
            "url": "https://files.pythonhosted.org/packages/e5/36/481e24fbee987526b9494b51fd50671262538f1387129d8b39dce0aad6ce/rusttypes-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 14:31:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hendrikboeck",
    "github_project": "rusttypes-py3",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "rusttypes"
}
        
Elapsed time: 0.22162s