Skip to main content

Library functions to support pythonizer

Project description

perllib

https://img.shields.io/pypi/v/perllib.svg https://img.shields.io/travis/snoopyjc/perllib.svg Documentation Status

Library functions to support pythonizer

Features

  • Perl library functions typically return 1 on success and undef on failure, whereas python library functions raise exceptions on failure. Also, perl automatically converts variables from strings to numbers and vice-versa when referenced in the appropriate context. In perl, global variables are truly global across files and are organized by package name, where in python global variables have file scope. In addition, perl has autovivification, which means that arrays and hash tables magically appear out of whole cloth when referenced. This library supports all of those features and allows the “pythonizer” perl to python translator generate code that is fairly readable.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.961 (2022-03-02)

  • Handle open layer pragmas, fix issue with translate and friends with squash option, add dclone, catfile, file_name_is_absolute, Dumper, don’t raise exception on double close

0.960 (2022-02-28)

  • Speed up ArrayHash and Num. Have add_element and subtract_element handle non-numeric elements, turn subprocess shell=False on windows unless the command contains cmd shell chars or is a cmd built-in, fixup open of /tmp/… on windows to use the windows tempdir, don’t pass effective_ids=True on windows. Have concat_element auto-convert everything to strings.

0.959 (2022-02-24)

  • str(ArrayHash()) changed to give ‘’ instead of [], add EVAL_ERROR global variable, have ArrayHash() + or += work on empty value

0.958 (2022-02-23)

  • Don’t give a close failed error on a pipe which got automatically closed, give empty result for keys(), values(), and items() on a fresh ArrayHash instead of AttributeError

0.957 (2022-02-22)

  • Add list_to_hash function to process key/value pairs

0.956 (2022-02-21)

  • Implement all options of translate (tr///)

0.955 (2022-02-19)

  • Fix split: A zero-width match at the beginning of EXPR never produces an empty field, fix bootstrapping issues

0.954 (2022-02-17)

  • Add -n: trace run, fix issue of scalar being initialized as an array

0.953 (2022-02-15)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perllib-0.961.tar.gz (38.9 kB view details)

Uploaded Source

Built Distributions

perllib-0.961-py3.10.egg (60.2 kB view details)

Uploaded Source

perllib-0.961-py2.py3-none-any.whl (32.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file perllib-0.961.tar.gz.

File metadata

  • Download URL: perllib-0.961.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for perllib-0.961.tar.gz
Algorithm Hash digest
SHA256 0ea53edb1ac534fe35d3645866eca82112b866f4753c3cc97483d5e1078834e2
MD5 9ded2268a490888e4f7f41bf7cfb291f
BLAKE2b-256 66d77877afb0a22318f34e40d6a823f985c256e284f643f73001292095f928a6

See more details on using hashes here.

File details

Details for the file perllib-0.961-py3.10.egg.

File metadata

  • Download URL: perllib-0.961-py3.10.egg
  • Upload date:
  • Size: 60.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for perllib-0.961-py3.10.egg
Algorithm Hash digest
SHA256 3e3c4f7dcc3d42ef25d6d8ceb0808f69ac617334c249fc00d2913a154e131b9a
MD5 b99ba0297229a32b73de3e8bcb16afbf
BLAKE2b-256 5aa4d3dab0d904bc95fd79771388dd970d9cd60c3015bfa44dddbd8604f40800

See more details on using hashes here.

File details

Details for the file perllib-0.961-py2.py3-none-any.whl.

File metadata

  • Download URL: perllib-0.961-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for perllib-0.961-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28563e44fef23244cb2c528f84ea15133811e6cc50eaeb6ab79f71f320077d73
MD5 ed22acc91e26f1694e2ddbc884b3d9f0
BLAKE2b-256 4d1f3ed3817c2217ac3cebe0e049b6aad1c675fd06bcd4571a690778ea5bf3fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page