Skip to main content

hot-reload for python packages

Project description

HOW TO USE?

import test_import
...
mods = HotImport([test_import]) # Update all the 'test_import' module
from test_import import say_hello
... #                                                                                        
mods = HotImport([say_hello]) # Update only the 'test_import.say_hello' function and the 'say_hello' function
from test_import import TestClass as TC
...
mods = HotImport([TC]) # Update all the 'TestClass' class and 'TC'

Warning !

If you have :

t = TC()

Then after the update t.function() will be the old one, you can access the new version only by using TC.function(t)

DISCLAIMER

This library is new and may contain some errors

Otherwise, have fun with it as long as you declare my work

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

hot-import-3.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

hot_import-3.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file hot-import-3.0.0.tar.gz.

File metadata

  • Download URL: hot-import-3.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for hot-import-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ec3e4723c579f8a988a6f75ba1d89861169b0257cf047900502276aa3d1764c0
MD5 80b1eabc23093db15ea38668860af5de
BLAKE2b-256 f9d26a4c9c882033ac33977d3b26e8e349833d01eaaad2b6196093e28f127a79

See more details on using hashes here.

File details

Details for the file hot_import-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: hot_import-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for hot_import-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1af353e6840ecafda1b2151912b5e1f49352ba81e0a19eeb0fe8d6a18f4c02b2
MD5 60de8905930d8669dc54353b6b2c269c
BLAKE2b-256 7cd0a71bdc28c28a436dbcef5401f50360518b7d98a4541fade19af5a7cf75b7

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