Package Search Help

You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.

Search by package name:
my-package (implicit)
name:my-package (explicit)

Search by package filename:
filename:my-package.ext 

Search by package tag:
tag:latest 

Search by package version:
version:1.0.0  prerelease:true (prereleases)
prerelease:false (no prereleases)

Search by package architecture:
architecture:x86_64 

Search by package distribution:
distribution:el 

Search by package license:
license:MIT 

Search by package format:
format:deb 

Search by package status:
status:in_progress 

Search by package file checksum:
checksum:5afba 

Search by package security status:
severity:critical 

Search by package vulnerabilities:
vulnerabilities:>1 
vulnerabilities:<1000 

Search by # of package downloads:
downloads:>8 
downloads:<100 

Search by package type:
type:binary 
type:source 

Search by package size (bytes):
size:>50000 
size:<10000 

Search by dependency name/version:
dependency:log4j 
dependency:log4j=1.0.0 
dependency:log4j>1.0.0 

Search by uploaded date:
uploaded:>"1 day ago" 
uploaded:<"August 14, 2022 EST" 

Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY 

Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true

Search by repository:
repository:repo-name

Search by last download date:
last_downloaded:<"30 days ago" 
last_downloaded:>"August 14, 2022 EST" 

Search queries for all Debian-specific (and related) package types

Search by component:
deb_component:unstable

Search queries for all Maven-specific (and related) package types

Search by group ID:
maven_group_id:org.apache

Search queries for all Docker-specific (and related) package types

Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)

Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)

Search queries for all Generic-specific package types

Search by file path:
generic_filepath:path/to/file.txt

Search by directory:
generic_directory:path/to

Field type modifiers (depending on the type, you can influence behaviour)

For all queries, you can use:
~foo for negation

For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching

For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal

Need a secure and centralised artifact repository to deliver Alpine, Cargo, CocoaPods, Composer, Conan, Conda, CRAN, Dart, Debian, Docker, Generic, Go, Helm, Hex, HuggingFace, LuaRocks, Maven, npm, NuGet, P2, Python, RedHat, Ruby, Swift, Terraform, Vagrant, VSX, Raw & More packages?

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.

With support for all major package formats, you can trust us to manage your software supply chain.

Start My Free Trial

Python logo burncpu  0.0.16

One-liner (summary)

A worker dispatcher with multiprocessing and multithreading.

Description

Module burncpu is a worker dispatcher with multiprocessing and multithreading.

Features

  • All CPU cores can be used.
  • Workers can be stopped gracefully by system signals.
  • Pure python code.

Quickstart

Use the following command to run the sample module.

python3 -m burncpu.sample

Then monitor CPU status, some changes take place at these time.

Time Events
0s All CPU cores are IDLE.
10s Workers begin to call one_second_task many times.
60s Workers begin to terminate.

Pressing Ctrl+C or sending system signal can also terminate the sample.

Finally copy and modify the source code to make your own.

Reference

To import

from burncpu.dispatcher import WorkerDispatcher

class WorkerDispatcher

WorkerDispatcher.__init__(worker_count=0, use_core=0, time_limit=0)

Create a dispatcher instace.

worker_count
How many threads would be created, 0 means to create (use_core * 2) threads.
use_core
How many cores would be use, 0 means all cores.
time_limit
Stop workers after given seconds. Running functions still run at that moment. Queued functions would be cancled.

WorkerDispatcher.dispatch(func, args)

Dispatch a function to one of workers randomly.

func
Function to call.
args
Argument list of this function.

WorkerDispatcher.sleep(seconds)

Sleep dispatcher for given seconds.

seconds
Seconds to sleep. Dispatcher would not sleep given seconds actually. It sleep many times during given seconds, so that system signal (e.g. Ctrl+C) can be handled.

WorkerDispatcher.join()

Wait until all workers stopped.

WorkerDispatcher.is_alive()

Check if the dispatcher is alive.

Size

3.4 KB

Downloads

4

Status  Completed
Checksum (MD5) c66fe30a6cdc688e604e8a2ce69a8df7
Checksum (SHA-1) 7c426021beac97ca3f2e1a45a569da49c9d0bd49
Checksum (SHA-256) cf38333a1fd4668cafbeca017ca3e472f01053446e1a1607294d23b9642fc2b9
Checksum (SHA-512) cac27e4c98486b9fbe92cd41123ca536360a69f0614df04484ab05b950bc76fd1b…
GPG Signature
GPG Fingerprint 6811684bac0b8895434e97bdd4391b8fb999e537
Storage Region  Dublin, Ireland
Type  Binary (contains binaries and binary artifacts)
Uploaded At 4 months, 2 weeks ago
Uploaded By Fetched by Cloudsmith
Slug Id burncpu-0016-py3-none-anywhl-6qch
Unique Id 4WGAwRaA6pn8e9D5
Version (Raw) 0.0.16
Version (Parsed)
  • Major: 0
  • Minor: 0
  • Patch: 16
  • Type: SemVer (Compat)
  extended metadata
Homepage URL https://github.com/virus-warnning/burncpu
Metadata Version 2.0
Py Filetype bdist_wheel
Py Version py3
Requires Python >=3.6
pkg burncpu-0.0.16-py3-none-any.whl 4
3.4 KB
md5 sha1 sha256 sha512
Package Contents (burncpu-0.0.16-py3-none-any.whl)
Loading...

This package has 8 files/directories.

Last scanned

4 months, 2 weeks ago

Scan result

Clean

Vulnerability count

0

Max. severity

Unknown

You can embed a badge in another website that shows this or the latest version of this package.

To embed the badge for this specific package version, use the following:

[![This version of 'burncpu' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/)
|This version of 'burncpu' @ Cloudsmith|
.. |This version of 'burncpu' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/",title="This version of 'burncpu' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/0.0.16/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true" alt="This version of 'burncpu' @ Cloudsmith" /></a>

rendered as: This version of 'burncpu' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'burncpu' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true&show_latest=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/)
|Latest version of 'burncpu' @ Cloudsmith|
.. |Latest version of 'burncpu' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true&show_latest=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/",title="Latest version of 'burncpu' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/burncpu/latest/a=noarch;xf=bdist_wheel;xn=burncpu;xv=py3/?render=true&show_latest=true" alt="Latest version of 'burncpu' @ Cloudsmith" /></a>

rendered as: Latest version of 'burncpu' @ Cloudsmith

These instructions assume you have setup the repository first (or read it).

To install/use burncpu @ version 0.0.16 ...

pip install 'burncpu==0.0.16'

You can also install the latest version of this package:

pip install --upgrade 'burncpu'

If necessary, you can specify the repository directly:

pip install \
  --index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
  burncpu==0.0.16

If you've got a project requirements.txt file, you can specify this as a dependency:

--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
burncpu==0.0.16

In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:

--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
burncpu==0.0.16
Warning: We highly recommend using pip (or similar) rather than installing directly.
Top