semvec/pypi-packages huggingface dataset:
compatibilityer 0.3.8
Tool to convert Python code to work with older versions
License: MIT
Requires Python: >=3.10,<4.0

Python3.11などの新しいバージョンのコードを、古いバージョンで動作するように変換するツールです。

あくまでも動作するように小手先の変換を施すだけであって、複雑なパターンの変換や厳密な等価性が必要な場合には使用できません。
また、当然ですが可読性はある程度失われます。

具体的には、以下のような変換を行います。
- 代入や関数定義の型アノテーションを文字列リテラルに置き換える
- 旧バージョンに存在しない要素の `from typing import` を削除する
- `alias: TypeAlias = SomeType` という形の `TypeAlias` の定義をする代入文の右辺を文字列リテラルに置き換える
- match文をif文に変換する(複雑なものには未対応)
simpleth 0.1.65
Simplified Ethereum for Python
License: MIT
Requires Python: >=3.8
Keywords: blockchain,ganache,Solidity,ethereum,smart-contract,contract

``Simpleth`` (**Simplified Ethereum**) simplifies
the use of Python to interact with a Ganache Ethereum blockchain and its Solidity
smart contracts.

`Simpleth` is a set of five Python facade classes that use the ``web3.py`` API
to interact with the smart contracts through a Ganache Ethereum client.

`Simpleth` only supports a portion of the `web3.py` functionality - the
portion that a Python developer uses to interact with contracts.

The aim is to provide Python developers a quick and easy way to:

-  **deploy** contracts onto the blockchain
-  **run transactions** in those contracts
-  **call functions** in those contracts
-  **get values** for public state variables in those contracts
-  **use filters** to find events emitted by those contracts
-  **get data** about the blockchain, contracts, transactions, and events

The intended audience:

-  **Python developers** who want to:

   -  learn to code smart contracts in Solidity
   -  play around with Ethereum and smart contracts using the Python interpreter
      and scripts
   -  build proof-of-concept dapps with Python scripts or `flask`
   -  build production dapps using Python in a single-user test environment
   -  see a working example of the `web3.py` API by looking at `simpleth`
      internals

-  **Solidity developers** looking for examples of:

   -  basic functions in a smart contract, esp. if just starting out
   -  more advanced functions in a smart contract, esp. for use in
      medium-complexity dapps.

**Full documentation** at *Read the Docs*: https://simpleth.readthedocs.io/en/latest/