https://github.com/vb64/py23
Python 2/3 compatible functions
https://github.com/vb64/py23
python2 python3
Last synced: 3 months ago
JSON representation
Python 2/3 compatible functions
- Host: GitHub
- URL: https://github.com/vb64/py23
- Owner: vb64
- License: mit
- Created: 2019-12-20T10:35:19.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T17:11:52.000Z (about 3 years ago)
- Last Synced: 2025-01-22T19:48:32.575Z (about 1 year ago)
- Topics: python2, python3
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.txt
- License: LICENSE
Awesome Lists containing this project
README
# Library py23
[](https://github.com/vb64/py23/actions?query=workflow%3Apep257)
[](https://github.com/vb64/py23/actions?query=workflow%3Apy2)
[](https://github.com/vb64/py23/actions?query=workflow%3Apy3)
Python 2/3 compatible functions
## Installation
```bash
$ pip install py23
```
## Usage
```python
import os
from py23 import load_module_by_path
py_module = load_module_by_path(os.path.join('py23', '__init__.py')
assert callable(py_module.remove_symbols)
```
## Development
```
$ git clone git@github.com:vb64/py23.git
$ cd py23
```
With Python 3:
```
$ make setup PYTHON_BIN=/path/to/python3
$ make tests
```
With Python 2:
```
$ make setup2 PYTHON_BIN=/path/to/python2
$ make tests2
```