<img src="https://raw.githubusercontent.com/vyperlang/vyper/master/docs/logo.svg?sanitize=true" alt="" width="110">
[![Build Status](https://github.com/vyperlang/vyper/workflows/Test/badge.svg)](https://github.com/vyperlang/vyper/actions/workflows/test.yml)
[![Documentation Status](https://readthedocs.org/projects/vyper/badge/?version=latest)](http://docs.vyperlang.org/en/latest/?badge=latest "ReadTheDocs")
[![Discord](https://img.shields.io/discord/969926564286459934.svg?label=%23vyper)](https://discord.gg/6tw7PTM7C2)
[![PyPI](https://badge.fury.io/py/vyper.svg)](https://pypi.org/project/vyper "PyPI")
[![Docker](https://img.shields.io/docker/cloud/build/vyperlang/vyper)](https://hub.docker.com/r/vyperlang/vyper "DockerHub")
[![Coverage Status](https://codecov.io/gh/vyperlang/vyper/branch/master/graph/badge.svg)](https://codecov.io/gh/vyperlang/vyper "Codecov")
[![Language grade: Python](https://github.com/vyperlang/vyper/workflows/CodeQL/badge.svg)](https://github.com/vyperlang/vyper/actions/workflows/codeql.yml)
# Getting Started
See [Installing Vyper](http://docs.vyperlang.org/en/latest/installing-vyper.html) to install vyper.
See [Tools and Resources](https://github.com/vyperlang/vyper/wiki/Vyper-tools-and-resources) for an additional list of framework and tools with vyper support.
See [Documentation](http://docs.vyperlang.org/en/latest/index.html) for the documentation and overall design goals of the Vyper language.
See [learn.vyperlang.org](https://learn.vyperlang.org/) for **learning Vyper by building a Pokémon game**.
See [try.vyperlang.org](https://try.vyperlang.org/) to use Vyper in a hosted jupyter environment!
**Note: Vyper is beta software, use with care**
# Installation
See the [Vyper documentation](https://docs.vyperlang.org/en/latest/installing-vyper.html)
for build instructions.
# Compiling a contract
To compile a contract, use:
```bash
vyper your_file_name.vy
```
***generate bytecode***
vyper -f bytecode file-name.vy > file-name.bin
***generate abi***
vyper -f abi file-name.vy > file-name.abi
There is also an [online compiler](https://vyper.online/) available you can use to experiment with
the language and compile to ``bytecode`` and/or ``IR``.
**Note: While the vyper version of the online compiler is updated on a regular basis it might
be a bit behind the latest version found in the master branch of this repository.**
## Testing (using pytest)
(Complete [installation steps](https://docs.vyperlang.org/en/latest/installing-vyper.html) first.)
```bash
make dev-init
python setup.py test
```
## Developing (working on the compiler)
A useful script to have in your PATH is something like the following:
```bash
$ cat ~/.local/bin/vyc
#!/usr/bin/env bash
PYTHONPATH=. python vyper/cli/vyper_compile.py "$@"
```
To run a python performance profile (to find compiler perf hotspots):
```bash
PYTHONPATH=. python -m cProfile -s tottime vyper/cli/vyper_compile.py "$@"
```
To get a call graph from a python profile, https://stackoverflow.com/a/23164271/ is helpful.
# Contributing
* See Issues tab, and feel free to submit your own issues
* Add PRs if you discover a solution to an existing issue
* For further discussions and questions, post in [Discussions](https://github.com/vyperlang/vyper/discussions) or talk to us on [Discord](https://discord.gg/6tw7PTM7C2)
* For more information, see [Contributing](http://docs.vyperlang.org/en/latest/contributing.html)
Raw data
{
"_id": null,
"home_page": "https://github.com/vyperlang/vyper",
"name": "vyper",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.10",
"maintainer_email": null,
"keywords": "ethereum evm smart contract language",
"author": "Vyper Team",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/2b/09/befae43f33161cf817590337f5ea12e8849e401eaaca9eeea22852ae90d1/vyper-0.4.0.tar.gz",
"platform": null,
"description": "<img src=\"https://raw.githubusercontent.com/vyperlang/vyper/master/docs/logo.svg?sanitize=true\" alt=\"\" width=\"110\">\n\n[![Build Status](https://github.com/vyperlang/vyper/workflows/Test/badge.svg)](https://github.com/vyperlang/vyper/actions/workflows/test.yml)\n[![Documentation Status](https://readthedocs.org/projects/vyper/badge/?version=latest)](http://docs.vyperlang.org/en/latest/?badge=latest \"ReadTheDocs\")\n[![Discord](https://img.shields.io/discord/969926564286459934.svg?label=%23vyper)](https://discord.gg/6tw7PTM7C2)\n\n[![PyPI](https://badge.fury.io/py/vyper.svg)](https://pypi.org/project/vyper \"PyPI\")\n[![Docker](https://img.shields.io/docker/cloud/build/vyperlang/vyper)](https://hub.docker.com/r/vyperlang/vyper \"DockerHub\")\n\n[![Coverage Status](https://codecov.io/gh/vyperlang/vyper/branch/master/graph/badge.svg)](https://codecov.io/gh/vyperlang/vyper \"Codecov\")\n[![Language grade: Python](https://github.com/vyperlang/vyper/workflows/CodeQL/badge.svg)](https://github.com/vyperlang/vyper/actions/workflows/codeql.yml)\n\n# Getting Started\nSee [Installing Vyper](http://docs.vyperlang.org/en/latest/installing-vyper.html) to install vyper.\nSee [Tools and Resources](https://github.com/vyperlang/vyper/wiki/Vyper-tools-and-resources) for an additional list of framework and tools with vyper support.\nSee [Documentation](http://docs.vyperlang.org/en/latest/index.html) for the documentation and overall design goals of the Vyper language.\n\nSee [learn.vyperlang.org](https://learn.vyperlang.org/) for **learning Vyper by building a Pok\u00e9mon game**.\nSee [try.vyperlang.org](https://try.vyperlang.org/) to use Vyper in a hosted jupyter environment!\n\n**Note: Vyper is beta software, use with care**\n\n# Installation\nSee the [Vyper documentation](https://docs.vyperlang.org/en/latest/installing-vyper.html)\nfor build instructions.\n\n# Compiling a contract\nTo compile a contract, use:\n```bash\nvyper your_file_name.vy\n```\n***generate bytecode***\n\n vyper -f bytecode file-name.vy > file-name.bin\n\n***generate abi***\n\n vyper -f abi file-name.vy > file-name.abi\n\nThere is also an [online compiler](https://vyper.online/) available you can use to experiment with\nthe language and compile to ``bytecode`` and/or ``IR``.\n\n**Note: While the vyper version of the online compiler is updated on a regular basis it might\nbe a bit behind the latest version found in the master branch of this repository.**\n\n## Testing (using pytest)\n\n(Complete [installation steps](https://docs.vyperlang.org/en/latest/installing-vyper.html) first.)\n\n```bash\nmake dev-init\npython setup.py test\n```\n\n## Developing (working on the compiler)\n\nA useful script to have in your PATH is something like the following:\n```bash\n$ cat ~/.local/bin/vyc\n#!/usr/bin/env bash\nPYTHONPATH=. python vyper/cli/vyper_compile.py \"$@\"\n```\n\nTo run a python performance profile (to find compiler perf hotspots):\n```bash\nPYTHONPATH=. python -m cProfile -s tottime vyper/cli/vyper_compile.py \"$@\"\n```\n\nTo get a call graph from a python profile, https://stackoverflow.com/a/23164271/ is helpful.\n\n\n# Contributing\n* See Issues tab, and feel free to submit your own issues\n* Add PRs if you discover a solution to an existing issue\n* For further discussions and questions, post in [Discussions](https://github.com/vyperlang/vyper/discussions) or talk to us on [Discord](https://discord.gg/6tw7PTM7C2)\n* For more information, see [Contributing](http://docs.vyperlang.org/en/latest/contributing.html)\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "Vyper: the Pythonic Programming Language for the EVM",
"version": "0.4.0",
"project_urls": {
"Homepage": "https://github.com/vyperlang/vyper"
},
"split_keywords": [
"ethereum",
"evm",
"smart",
"contract",
"language"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "370b7c14ae8aec83187a67d8c13a4fdff9bc4d72d9ef822ec7ce026b301a00cb",
"md5": "e0443bf14aa8924539ba4120bc5d8517",
"sha256": "22d7e1eca229e95a909dc971ff5b1685c8379404e3fc3b7b84dbc59b5de1c262"
},
"downloads": -1,
"filename": "vyper-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0443bf14aa8924539ba4120bc5d8517",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.10",
"size": 338856,
"upload_time": "2024-06-20T17:00:41",
"upload_time_iso_8601": "2024-06-20T17:00:41.592217Z",
"url": "https://files.pythonhosted.org/packages/37/0b/7c14ae8aec83187a67d8c13a4fdff9bc4d72d9ef822ec7ce026b301a00cb/vyper-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2b09befae43f33161cf817590337f5ea12e8849e401eaaca9eeea22852ae90d1",
"md5": "5b66b4315875acefed315b76a2765e0c",
"sha256": "9687145c6a0bf42de52e92202ce9a913648d3c657ac8e5cfb9b35a100dc47e34"
},
"downloads": -1,
"filename": "vyper-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "5b66b4315875acefed315b76a2765e0c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.10",
"size": 672136,
"upload_time": "2024-06-20T17:00:44",
"upload_time_iso_8601": "2024-06-20T17:00:44.269306Z",
"url": "https://files.pythonhosted.org/packages/2b/09/befae43f33161cf817590337f5ea12e8849e401eaaca9eeea22852ae90d1/vyper-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-20 17:00:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vyperlang",
"github_project": "vyper",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "vyper"
}