Skip to main content

multiprocessing-safe importlib.resource.files implementation.

Project description

multiprocessing-importlib-resources

Storing the Traversable returned by importlib.resources.files is not save in zipapps using multiple processes. Use multiprocessing-importlib-resources to make this safe.

For more information see:

Use as importlib.resources.files replacement

from importlib.resources.abc import Traversable
from multiprocessing_importlib_resources import files


PATH: Traversable = files(__name__)

Patch importlib.resources.files for everyone

from importlib.resources.abc import Traversable
import multiprocessing_importlib_resources
multiprocessing_importlib_resources._patch()

# fine now
from importlib.resources import files
PATH: Traversable = files(__name__)

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

multiprocessing_importlib_resources-0.0.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file multiprocessing_importlib_resources-0.0.4.tar.gz.

File metadata

File hashes

Hashes for multiprocessing_importlib_resources-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fb7e76d785d54271f0b1accf16ef6a7750cbb5b8f21194e420e106da82872ec2
MD5 834ab3ede509eeb7318c382e66f3b051
BLAKE2b-256 81a3edf04ddea11575647c17770b4d98b9f6d8491376e9ddd97a63ba22ff6cf6

See more details on using hashes here.

File details

Details for the file multiprocessing_importlib_resources-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for multiprocessing_importlib_resources-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa17316473c725ca55d5d52f26012284516fd09e438d31a0d6d74e0aa80d8c92
MD5 ee3b955c74b14ca1cf661b97b6a6c1bf
BLAKE2b-256 42575265df786dc4c4b22fa62c878efda2e8a2980f2c25e6b574a4e2661e86db

See more details on using hashes here.

Supported by

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