Skip to main content

advanced threading made beginner... threading library that expands upon stdlib "threading."

Project description

multithreaded

advanced threading made beginner

installation

Method one: The typical way. Run one of these commands:

  • pip install multithreaded - Should work for Windows, but may not work if /Scripts/ isn't on path.
  • pip3 install multithreaded - Should work for Windows and Linux, but it may now work if /Scripts/ isn't on path.
  • py -m pip install multithreaded - Should work for every Windows installation. If it doesn't, replace py with python or python3.
  • python3 -m pip install multithreaded - Should work for every installation (except certain Windows ones). If this doesn't work, use [py/python/python3] -m ensurepip.
    Method two: The other way. Go into releases and download the latest one. Then run [your pip command] install [path to .whl file]
    Method three: The dev way. Download the source code and there you go. If you don't want to edit anything, copy the /multithreaded directory (not the project root!) into your project directory.

quick start

Start a thread:

import multithreaded as mt


def my_function(arg1 : int, arg2 : str = "Hello, world!") :
   for i in range(arg2) :
       print(arg1)

thread = mt.Thread(my_function, 5, kwargs={"arg2" : "Hello, Github!"})
thread.start()

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

multithreaded-0.0.6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file multithreaded-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: multithreaded-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for multithreaded-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ca9cfb68fd0ee428d74eaf74219e6c6b53016602a5921bfe9dce49c5ad9c0f5c
MD5 ffc573228648418b7d9c4628a1c54d21
BLAKE2b-256 d233a70e74b9120a85988942f0dc4222369e699ca6b02f5e30fb851ac1bc429b

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