mixed-methods


Namemixed-methods JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/nekitdev/mixed-methods
SummaryMixed methods.
upload_time2024-02-26 12:17:04
maintainer
docs_urlNone
authornekitdev
requires_python>=3.8
licenseMIT
keywords python mixed method
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `mixed-methods`

[![License][License Badge]][License]
[![Version][Version Badge]][Package]
[![Downloads][Downloads Badge]][Package]
[![Discord][Discord Badge]][Discord]

[![Documentation][Documentation Badge]][Documentation]
[![Check][Check Badge]][Actions]
[![Test][Test Badge]][Actions]
[![Coverage][Coverage Badge]][Coverage]

> *Mixed methods.*

## Installing

**Python 3.8 or above is required.**

### pip

Installing the library with `pip` is quite simple:

```console
$ pip install mixed-methods
```

Alternatively, the library can be installed from source:

```console
$ git clone https://github.com/nekitdev/mixed-methods.git
$ cd mixed-methods
$ python -m pip install .
```

### poetry

You can add `mixed-methods` as a dependency with the following command:

```console
$ poetry add mixed-methods
```

Or by directly specifying it in the configuration like so:

```toml
[tool.poetry.dependencies]
mixed-methods = "^1.1.1"
```

Alternatively, you can add it directly from the source:

```toml
[tool.poetry.dependencies.mixed-methods]
git = "https://github.com/nekitdev/mixed-methods.git"
```

## Examples

```python
# main.py

from mixed_methods import mixed_method

class Type:
    @classmethod
    def type_method(cls) -> int:
        return 13

    def instance_method(self) -> int:
        return 42

    method = mixed_method(type_method, instance_method)
```

```python
>>> from main import Type
>>> Type.method()
13
>>> instance = Type()
>>> instance.method()
42
```

## Documentation

You can find the documentation [here][Documentation].

## Support

If you need support with the library, you can send an [email][Email]
or refer to the official [Discord server][Discord].

## Changelog

You can find the changelog [here][Changelog].

## Security Policy

You can find the Security Policy of `mixed-methods` [here][Security].

## Contributing

If you are interested in contributing to `mixed-methods`, make sure to take a look at the
[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].

## License

`mixed-methods` is licensed under the MIT License terms. See [License][License] for details.

[Email]: mailto:support@nekit.dev

[Discord]: https://nekit.dev/chat

[Actions]: https://github.com/nekitdev/mixed-methods/actions

[Changelog]: https://github.com/nekitdev/mixed-methods/blob/main/CHANGELOG.md
[Code of Conduct]: https://github.com/nekitdev/mixed-methods/blob/main/CODE_OF_CONDUCT.md
[Contributing Guide]: https://github.com/nekitdev/mixed-methods/blob/main/CONTRIBUTING.md
[Security]: https://github.com/nekitdev/mixed-methods/blob/main/SECURITY.md

[License]: https://github.com/nekitdev/mixed-methods/blob/main/LICENSE

[Package]: https://pypi.org/project/mixed-methods
[Coverage]: https://codecov.io/gh/nekitdev/mixed-methods
[Documentation]: https://nekitdev.github.io/mixed-methods

[Discord Badge]: https://img.shields.io/discord/728012506899021874
[License Badge]: https://img.shields.io/pypi/l/mixed-methods
[Version Badge]: https://img.shields.io/pypi/v/mixed-methods
[Downloads Badge]: https://img.shields.io/pypi/dm/mixed-methods

[Documentation Badge]: https://github.com/nekitdev/mixed-methods/workflows/docs/badge.svg
[Check Badge]: https://github.com/nekitdev/mixed-methods/workflows/check/badge.svg
[Test Badge]: https://github.com/nekitdev/mixed-methods/workflows/test/badge.svg
[Coverage Badge]: https://codecov.io/gh/nekitdev/mixed-methods/branch/main/graph/badge.svg

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nekitdev/mixed-methods",
    "name": "mixed-methods",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "python,mixed,method",
    "author": "nekitdev",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/0d/da/a75790089190201643882df475640b4f1c17d366b08875a7fd2b550b7035/mixed_methods-1.1.1.tar.gz",
    "platform": null,
    "description": "# `mixed-methods`\n\n[![License][License Badge]][License]\n[![Version][Version Badge]][Package]\n[![Downloads][Downloads Badge]][Package]\n[![Discord][Discord Badge]][Discord]\n\n[![Documentation][Documentation Badge]][Documentation]\n[![Check][Check Badge]][Actions]\n[![Test][Test Badge]][Actions]\n[![Coverage][Coverage Badge]][Coverage]\n\n> *Mixed methods.*\n\n## Installing\n\n**Python 3.8 or above is required.**\n\n### pip\n\nInstalling the library with `pip` is quite simple:\n\n```console\n$ pip install mixed-methods\n```\n\nAlternatively, the library can be installed from source:\n\n```console\n$ git clone https://github.com/nekitdev/mixed-methods.git\n$ cd mixed-methods\n$ python -m pip install .\n```\n\n### poetry\n\nYou can add `mixed-methods` as a dependency with the following command:\n\n```console\n$ poetry add mixed-methods\n```\n\nOr by directly specifying it in the configuration like so:\n\n```toml\n[tool.poetry.dependencies]\nmixed-methods = \"^1.1.1\"\n```\n\nAlternatively, you can add it directly from the source:\n\n```toml\n[tool.poetry.dependencies.mixed-methods]\ngit = \"https://github.com/nekitdev/mixed-methods.git\"\n```\n\n## Examples\n\n```python\n# main.py\n\nfrom mixed_methods import mixed_method\n\nclass Type:\n    @classmethod\n    def type_method(cls) -> int:\n        return 13\n\n    def instance_method(self) -> int:\n        return 42\n\n    method = mixed_method(type_method, instance_method)\n```\n\n```python\n>>> from main import Type\n>>> Type.method()\n13\n>>> instance = Type()\n>>> instance.method()\n42\n```\n\n## Documentation\n\nYou can find the documentation [here][Documentation].\n\n## Support\n\nIf you need support with the library, you can send an [email][Email]\nor refer to the official [Discord server][Discord].\n\n## Changelog\n\nYou can find the changelog [here][Changelog].\n\n## Security Policy\n\nYou can find the Security Policy of `mixed-methods` [here][Security].\n\n## Contributing\n\nIf you are interested in contributing to `mixed-methods`, make sure to take a look at the\n[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].\n\n## License\n\n`mixed-methods` is licensed under the MIT License terms. See [License][License] for details.\n\n[Email]: mailto:support@nekit.dev\n\n[Discord]: https://nekit.dev/chat\n\n[Actions]: https://github.com/nekitdev/mixed-methods/actions\n\n[Changelog]: https://github.com/nekitdev/mixed-methods/blob/main/CHANGELOG.md\n[Code of Conduct]: https://github.com/nekitdev/mixed-methods/blob/main/CODE_OF_CONDUCT.md\n[Contributing Guide]: https://github.com/nekitdev/mixed-methods/blob/main/CONTRIBUTING.md\n[Security]: https://github.com/nekitdev/mixed-methods/blob/main/SECURITY.md\n\n[License]: https://github.com/nekitdev/mixed-methods/blob/main/LICENSE\n\n[Package]: https://pypi.org/project/mixed-methods\n[Coverage]: https://codecov.io/gh/nekitdev/mixed-methods\n[Documentation]: https://nekitdev.github.io/mixed-methods\n\n[Discord Badge]: https://img.shields.io/discord/728012506899021874\n[License Badge]: https://img.shields.io/pypi/l/mixed-methods\n[Version Badge]: https://img.shields.io/pypi/v/mixed-methods\n[Downloads Badge]: https://img.shields.io/pypi/dm/mixed-methods\n\n[Documentation Badge]: https://github.com/nekitdev/mixed-methods/workflows/docs/badge.svg\n[Check Badge]: https://github.com/nekitdev/mixed-methods/workflows/check/badge.svg\n[Test Badge]: https://github.com/nekitdev/mixed-methods/workflows/test/badge.svg\n[Coverage Badge]: https://codecov.io/gh/nekitdev/mixed-methods/branch/main/graph/badge.svg\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mixed methods.",
    "version": "1.1.1",
    "project_urls": {
        "Chat": "https://nekit.dev/chat",
        "Documentation": "https://nekitdev.github.io/mixed-methods",
        "Funding": "https://nekit.dev/funding",
        "Homepage": "https://github.com/nekitdev/mixed-methods",
        "Issues": "https://github.com/nekitdev/mixed-methods/issues",
        "Repository": "https://github.com/nekitdev/mixed-methods"
    },
    "split_keywords": [
        "python",
        "mixed",
        "method"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "47d9d3d617f179e1ccb6bdc373a0cd5c9c5e03feaa9afdef3a05e7c62d108c01",
                "md5": "7bad01132b3d9a6e94b9229307238700",
                "sha256": "a0332754ab4fb89812bb1f421b9bc3641e260618c4ae4f085b41cf262563f83b"
            },
            "downloads": -1,
            "filename": "mixed_methods-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7bad01132b3d9a6e94b9229307238700",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4318,
            "upload_time": "2024-02-26T12:17:03",
            "upload_time_iso_8601": "2024-02-26T12:17:03.389677Z",
            "url": "https://files.pythonhosted.org/packages/47/d9/d3d617f179e1ccb6bdc373a0cd5c9c5e03feaa9afdef3a05e7c62d108c01/mixed_methods-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ddaa75790089190201643882df475640b4f1c17d366b08875a7fd2b550b7035",
                "md5": "62ba5a2cfa0a2dabe3b7fbaca8cdc7c7",
                "sha256": "6cbd33e1af250d2496c7d3829b55be005ddb000b6980d0c15c599a5abe12125e"
            },
            "downloads": -1,
            "filename": "mixed_methods-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "62ba5a2cfa0a2dabe3b7fbaca8cdc7c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4066,
            "upload_time": "2024-02-26T12:17:04",
            "upload_time_iso_8601": "2024-02-26T12:17:04.389667Z",
            "url": "https://files.pythonhosted.org/packages/0d/da/a75790089190201643882df475640b4f1c17d366b08875a7fd2b550b7035/mixed_methods-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-26 12:17:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nekitdev",
    "github_project": "mixed-methods",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mixed-methods"
}
        
Elapsed time: 0.36982s