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.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

hot_import-3.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file hot_import-3.1.0.tar.gz.

File metadata

  • Download URL: hot_import-3.1.0.tar.gz
  • Upload date:
  • Size: 4.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 752cede359ef865bec22066236e06e6f01d1e26317f7499852712c291ad221bc
MD5 7b7b76e25c67ab004b90b0fc35971f8d
BLAKE2b-256 804db59afbc495bd88249468c5bdd2103e3e717ef81178ef170fc0783648596d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hot_import-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa1c7f95a1b67465e20626ffcaa6027fcf7a55549e7e5c322bb8a588f1279b39
MD5 fb64f45f4668764547febe7e92d887ff
BLAKE2b-256 58304be63d9c984400782492e5423c990b3c09ebb48bffe3794348de622e78fb

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