bpc-walrus


Namebpc-walrus JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/pybpc/walrus
SummaryBackport compiler for Python 3.8 assignment expressions.
upload_time2023-06-05 10:08:55
maintainer
docs_urlNone
authorJarry Shaw
requires_python>=3.4
licenseMIT
keywords walrus operator assignment expression back-port compiler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # NB: walrus is currently under reconstruction. It is highly recommended to directly install from the git repo or the pre-release distributions.

---

# walrus

[![PyPI - Downloads](https://pepy.tech/badge/python-walrus)](https://pepy.tech/count/python-walrus)
[![PyPI - Version](https://img.shields.io/pypi/v/bpc-walrus.svg)](https://pypi.org/project/bpc-walrus)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bpc-walrus.svg)](https://pypi.org/project/bpc-walrus)

[![GitHub Actions - Status](https://github.com/pybpc/bpc-walrus/workflows/Build/badge.svg)](https://github.com/pybpc/bpc-walrus/actions?query=workflow%3ABuild)
[![Codecov - Coverage](https://codecov.io/gh/pybpc/bpc-walrus/branch/master/graph/badge.svg)](https://codecov.io/gh/pybpc/bpc-walrus)
[![Documentation Status](https://readthedocs.org/projects/bpc-walrus/badge/?version=latest)](https://bpc-walrus.readthedocs.io/en/latest/)

> Write *assignment expressions* in Python 3.8 flavour, and let `walrus` worry about back-port issues :beer:

  Since [PEP 572](https://www.python.org/dev/peps/pep-0572/), Python introduced *assignment expressions*
syntax in version __3.8__. For those who wish to use *assignment expressions* in their code, `walrus` provides an
intelligent, yet imperfect, solution of a **backport compiler** by replacing *assignment expressions* syntax with
old-fashioned syntax, which guarantees you to always write *assignment expressions* in Python 3.8 flavour then
compile for compatibility later.

## Documentation

  See [documentation](https://bpc-walrus.readthedocs.io/en/latest/) for usage and more details.

## Contribution

  Contributions are very welcome, especially fixing bugs and providing test cases.
Note that code must remain valid and reasonable.

## See Also

- [`pybpc`](https://github.com/pybpc/bpc) (formerly known as `python-babel`)
- [`f2format`](https://github.com/pybpc/f2format)
- [`poseur`](https://github.com/pybpc/poseur)
- [`relaxedecor`](https://github.com/pybpc/relaxedecor)
- [`vermin`](https://github.com/netromdk/vermin)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pybpc/walrus",
    "name": "bpc-walrus",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "walrus operator,assignment expression,back-port compiler",
    "author": "Jarry Shaw",
    "author_email": "jarryshaw@icloud.com",
    "download_url": "https://files.pythonhosted.org/packages/87/93/6135fe910c5b924a3978af50d772bfa5b96298109c77a40b983d52e878f5/bpc-walrus-0.1.5.tar.gz",
    "platform": null,
    "description": "# NB: walrus is currently under reconstruction. It is highly recommended to directly install from the git repo or the pre-release distributions.\n\n---\n\n# walrus\n\n[![PyPI - Downloads](https://pepy.tech/badge/python-walrus)](https://pepy.tech/count/python-walrus)\n[![PyPI - Version](https://img.shields.io/pypi/v/bpc-walrus.svg)](https://pypi.org/project/bpc-walrus)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bpc-walrus.svg)](https://pypi.org/project/bpc-walrus)\n\n[![GitHub Actions - Status](https://github.com/pybpc/bpc-walrus/workflows/Build/badge.svg)](https://github.com/pybpc/bpc-walrus/actions?query=workflow%3ABuild)\n[![Codecov - Coverage](https://codecov.io/gh/pybpc/bpc-walrus/branch/master/graph/badge.svg)](https://codecov.io/gh/pybpc/bpc-walrus)\n[![Documentation Status](https://readthedocs.org/projects/bpc-walrus/badge/?version=latest)](https://bpc-walrus.readthedocs.io/en/latest/)\n\n> Write *assignment expressions* in Python 3.8 flavour, and let `walrus` worry about back-port issues :beer:\n\n  Since [PEP 572](https://www.python.org/dev/peps/pep-0572/), Python introduced *assignment expressions*\nsyntax in version __3.8__. For those who wish to use *assignment expressions* in their code, `walrus` provides an\nintelligent, yet imperfect, solution of a **backport compiler** by replacing *assignment expressions* syntax with\nold-fashioned syntax, which guarantees you to always write *assignment expressions* in Python 3.8 flavour then\ncompile for compatibility later.\n\n## Documentation\n\n  See [documentation](https://bpc-walrus.readthedocs.io/en/latest/) for usage and more details.\n\n## Contribution\n\n  Contributions are very welcome, especially fixing bugs and providing test cases.\nNote that code must remain valid and reasonable.\n\n## See Also\n\n- [`pybpc`](https://github.com/pybpc/bpc) (formerly known as `python-babel`)\n- [`f2format`](https://github.com/pybpc/f2format)\n- [`poseur`](https://github.com/pybpc/poseur)\n- [`relaxedecor`](https://github.com/pybpc/relaxedecor)\n- [`vermin`](https://github.com/netromdk/vermin)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Backport compiler for Python 3.8 assignment expressions.",
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/pybpc/walrus"
    },
    "split_keywords": [
        "walrus operator",
        "assignment expression",
        "back-port compiler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7212bd71b12f1c3d2c9c7d4a4bedc0144b3ad89d6e300cc0ffce3ebaf68553da",
                "md5": "6796fbdde9048023eaf1112d88bdf4c8",
                "sha256": "fc78afb901a9bc39ab9e88051f83e3716d65ea45b55cb7f0b9018497382050b0"
            },
            "downloads": -1,
            "filename": "bpc_walrus-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6796fbdde9048023eaf1112d88bdf4c8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 17975,
            "upload_time": "2023-06-05T10:08:53",
            "upload_time_iso_8601": "2023-06-05T10:08:53.510796Z",
            "url": "https://files.pythonhosted.org/packages/72/12/bd71b12f1c3d2c9c7d4a4bedc0144b3ad89d6e300cc0ffce3ebaf68553da/bpc_walrus-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87936135fe910c5b924a3978af50d772bfa5b96298109c77a40b983d52e878f5",
                "md5": "40cb2051fd2c5e199e935646dfb42e6e",
                "sha256": "c5c1d3618f47c2d310cd8b22d984120106e235656a28ba5a1f8a045a4b5eb40d"
            },
            "downloads": -1,
            "filename": "bpc-walrus-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "40cb2051fd2c5e199e935646dfb42e6e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 20789,
            "upload_time": "2023-06-05T10:08:55",
            "upload_time_iso_8601": "2023-06-05T10:08:55.484620Z",
            "url": "https://files.pythonhosted.org/packages/87/93/6135fe910c5b924a3978af50d772bfa5b96298109c77a40b983d52e878f5/bpc-walrus-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-05 10:08:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pybpc",
    "github_project": "walrus",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "bpc-walrus"
}
        
Elapsed time: 0.09112s