Skip to main content

A bunch tools I have created over the years

Project description

Slurm

Actions Status GitHub PyPI - Python Version PyPI

Under Development

Storage

from slurm import storage

yaml = storage.read("file.yaml")
json = storage.read("file.json")
json = storage.read("file", "json")


data = [1,2,3,4]
storage.write("bob.json", data)
storage.write("guess", data, "yml")

Network

from slurm import network

ip = network.get_ip()
print(ip)

Sleep Rate

Will sleep for a prescribed amount of time inside of a loop irregardless of how long the loop takes

from slurm.rate import Rate

rate = Rate(10)  # let loop run at 10 Hz

while True:
    # so some processing
    rate.sleep()

MIT License

Copyright (c) 2014 Kevin J. Walchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

slurm-0.3.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

slurm-0.3.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file slurm-0.3.1.tar.gz.

File metadata

  • Download URL: slurm-0.3.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for slurm-0.3.1.tar.gz
Algorithm Hash digest
SHA256 da46e0b69ee148e59f8de6eff468ab3270513db22b3adc0499b93113f09afc7c
MD5 80b4f425588f7ecc7a51a511ad7eb3a6
BLAKE2b-256 1873c5e605d0197c8084131abc5e74aa47257449a02db2884d8dfd323543edaa

See more details on using hashes here.

File details

Details for the file slurm-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: slurm-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for slurm-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 122fcb222dcf7832e4859a00796e5cc4984cbc3375276c4897ae4bcf2f8e0300
MD5 990a27547afc7f1558e6b0eb2d4e10bc
BLAKE2b-256 5e58b29e3dbf41d47b882ad93ca84cc2df36ba827355a5ad48baabd00eb4dbe6

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