Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Backports for the Python standard library.

License

NotificationsYou must be signed in to change notification settings

syubogdanov/backlib

Repository files navigation

PyPI VersionPyPI DownloadsLicensePython Version

Warning

The library is in the pre-alpha stage. Bugs may exist!

Key Features

  • Provides backports for the standard library;
  • Compatible with Python 3.9+;
  • Almost dependency-free.

Getting Started

Installation

The library is available asbacklib on PyPI:

pip install backlib

Usage

builtins

For more, see thedocumentation.

frombacklib.py310importbuiltinsassertissubclass(builtins.EncodingWarning,Warning)

errno

For more, see thedocumentation.

frombacklib.py311importerrnoasserterrno.ENOTCAPABLE==93

io [SOON]

For more, see thedocumentation.

frombacklib.py311importioencoding=io.text_encoding(None)assertencoding=="utf-8"

json

For more, see thedocumentation.

frombacklib.py310importjsondata=json.loads("{\"backlib\":\"pypi\"}")assertdata== {"backlib":"pypi"}

operator

For more, see thedocumentation.

frombacklib.py311importoperatorvalue=operator.call(abs,-42)assertvalue==42

os

For more, see thedocumentation.

frombacklib.py312importosst=os.stat("pyproject.toml")assertst.st_birthtime_ns>0

os.path

For more, see thedocumentation.

frombacklib.py313importosassertos.path.isreserved("NUL")

stat

For more, see thedocumentation.

frombacklib.py313importstatassertstat.SF_SYNTHETIC==0xC0000000

tomllib

For more, see thedocumentation.

frombacklib.py311importtomllibdata=tomllib.loads("\"backlib\" =\"pypi\"")assertdata== {"backlib":"pypi"}

License

MIT License, Copyright (c) 2025 Sergei Y. Bogdanov. SeeLICENSE file.


[8]ページ先頭

©2009-2025 Movatter.jp