Skip to main content

vsc-base

Description

Common tools used within our organization. Originally created by the HPC team of Ghent University (https://ugent.be/hpc).

Namespaces and tools

lib/utils

python utilities to be used as libraries

  • fancylogger: an extention of the default python logger designed to be easy to use and have a couple of fancy features.

  • custom specifiers for mpi loggin (the mpirank) with autodetection of mpi

  • custom specifier for always showing the calling function's name

  • rotating file handler

  • a default formatter.

  • logging to an UDP server (logdaemon.py f.ex.)

  • easily setting loglevel

  • daemon.py : Daemon class written by Sander Marechal (http://www.jejik.com) to start a python script as a daemon.

  • missing.py: Small functions and tools that are commonly used but not available in the Python (2.x) API.

  • cache.py : File cache to store pickled data identified by a key accompanied by a timestamp. (moved to vsc-utils)

  • generaloption.py : A general option parser for python. It will fetch options (in this order) from config files, from environment variables and from the command line and parse them in a way compatible with the default python optionparser. Thus allowing a very flexible way to configure your scripts. It also adds a few other useful extras.

  • affinity.py : Linux cpu affinity.

  • Based on sched.h and bits/sched.h,

  • see man pages for sched_getaffinity and sched_setaffinity

  • also provides a cpuset class to convert between human readable cpusets and the bit version Linux priority

  • Based on sys/resources.h and bits/resources.h see man pages for getpriority and setpriority

  • asyncprocess.py : Module to allow Asynchronous subprocess use on Windows and Posix platforms

  • Based on a python recipe by Josiah Carlson

  • added STDOUT handle and recv_some

  • daemon.py : A generic daemon class by Sander Marechal

  • dateandtime.py : A module with various convenience functions and classes to deal with date, time and timezone.

  • nagios.py : This module provides functionality to cache and report results of script executions that can readily be interpreted by nagios/icinga.

  • run.py : Python module to execute a command, can make use of asyncprocess, answer questions based on a dictionary

  • supports a whole lot of ways to input, process and output the command. (filehandles, PIPE, pty, stdout, logging...)

  • mail.py : Wrapper around the standard Python mail library.

  • Send a plain text message

  • Send an HTML message, with a plain text alternative

bin

A collection of python scripts, these are examples of how you could use fancylogger to log to a daemon, but should not be used directly.

  • logdaemon.py: A daemon that listens on a port for udp packets and logs them to file, works toghether with fancylogger.
  • startlogdaemon.py : Script that will start the logdaemon for you and set environment variables for fancylogger.

Acknowledgements

vsc-base was created with support of Ghent University, the Flemish Supercomputer Centre (VSC), the Flemish Research Foundation (FWO), and the Department of Economy, Science and Innovation (EWI).

Metadata

Release files for vsc-base 3.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vsc-base 3.6.1
File Size Uploaded
vsc-base-3.6.1.tar.gz 108.9 kB Details

Release files / vsc-base-3.6.1.tar.gz

Download URL vsc-base-3.6.1.tar.gz
Size 108.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e6a14431d3ebd19c4746a77398510fa8bdd985db5d192cc50785995b72e656e
BLAKE2b-256 checksum
How to use checksums
4842711c9c18108e70063662af1ffec14b2b6c4edd3c85418328f5caa3be0692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release history Release notifications | RSS feed

This release

3.6.1 This release

1 release file

3.5.9

1 release file

3.5.8

1 release file

3.5.7

1 release file

3.5.6

1 release file

3.5.5

1 release file

3.5.3

1 release file

3.5.2

1 release file

3.5.1

1 release file

3.5.0

1 release file

3.4.10

1 release file

3.4.9

1 release file

3.4.8

1 release file

3.4.7

1 release file

3.4.6

1 release file

3.4.5

1 release file

3.4.4

1 release file

3.4.3

1 release file

3.4.0

1 release file

3.3.1

1 release file

3.3.0

1 release file

3.2.4

1 release file

3.2.3

1 release file

3.2.1

1 release file

3.1.4

1 release file

3.1.3

1 release file

3.1.2

1 release file

3.1.1

1 release file

3.1.0

1 release file

3.0.6

1 release file

3.0.5

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.9.6

1 release file

2.9.5

1 release file

2.9.4

1 release file

2.9.3

1 release file

2.9.2

1 release file

2.9.1

1 release file

2.8.4

1 release file

2.8.3

1 release file

2.8.2

1 release file

2.8.1

1 release file

2.8.0

1 release file

2.7.5

1 release file

2.7.4

1 release file

2.7.3

1 release file

2.7.2

1 release file

2.6.0

1 release file

2.5.8

1 release file

2.5.7

1 release file

2.5.5

1 release file

2.5.4

1 release file

2.5.3

1 release file

2.5.2

1 release file

2.5.1

1 release file

2.4.18

1 release file

2.4.17

1 release file

2.4.16

1 release file

2.4.12

1 release file

2.4.11

2.4.2

1 release file

2.4.1

1 release file

2.2.5

1 release file

2.2.4

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.0

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.0

1 release file

1.8.5

1 release file

0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page