The functions and classes in humanfriendly can be used to make text interfaces more user-friendly. It includes tools to parse and format numbers, file sizes, and timespans, timers for long-running operations, menus to allow the user to choose from a list of options, and terminal interaction helpers.
ebtelplusplus is an implementation of the enthalpy-based thermal evolution of loops (EBTEL) model for doing efficient hydrodynamics of dynamically-heated solar coronal loops. ebtelplusplus decouples the electron and ion energy equations such that the two populations can evolve separately. This implementation also includes effects to due to cross-sectional area expansion.
This is a library to allow the easy creation of Relay-compliant servers using the GraphQL Python reference implementation of a GraphQL server. It should be noted that the code is a exact port of the original graphql-relay js implementation from Facebook.
This is Python port of linkify-it, which is a links recognition library with full Unicode support. It has features like:
Full unicode support, with astral characters
International domains support
Allows rules extension and custom normalizers.
Scikit-rebate is a scikit-learn-compatible Python implementation of ReBATE, a suite of Relief-based feature selection algorithms for Machine Learning. These algorithms excel at identifying features that are predictive of the outcome in supervised learning problems, and are especially good at identifying feature interactions that are normally overlooked by standard feature selection algorithms.
This package provides line_profiler - a Python module for doing line-by-line profiling of functions. kernprof is a convenient script for running either line_profiler or the Python standard library's cProfile or profile modules, depending on what is available. It's a successor of https://github.com/rkern/line_profiler.
python-secretstorage provides a way for securely storing passwords and other secrets. It uses D-Bus Secret Service API that is supported by GNOME Keyring (since version 2.30) and KSecretsService. SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported).
This is a backport of the subprocess standard library module from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some new features. On POSIX systems it is guaranteed to be reliable when used in threaded applications. It includes timeout support from Python 3.3 but otherwise matches 3.2’s API.
The simplegeneric module lets you define simple single-dispatch generic functions, akin to Python’s built-in generic functions like len(), iter() and so on. However, instead of using specially-named methods, these generic functions use simple lookup tables, akin to those used by e.g. pickle.dump() and other generic functions found in the Python standard library.
The rpy2 package is a namespace package. This is the part of that package that covers the "high-level" interface to R used in rpy2. It uses the "low-level" interface (bindings to R's C API) to create a more Pythonic and safer interface in rpy2.robjects as well as extentions for ipython and jupyter notebooks in rpy2.ipython.
This hook sends emails describing changes introduced by pushes to a Git repository. For each reference that was changed, it emits one ReferenceChange email summarizing how the reference was changed, followed by one Revision email for each new commit that was introduced by the reference change.
This script is designed to be used as a post-receive hook in a Git repository
This package implements RetryClient for aiohttp to retry connection to provided endpoint with timeouts logic or use:
ExponentialRetrywith exponential backoffRandomRetryfor random backoffListRetrywith backoff you predefine by listFibonacciRetrywith backoff that looks like fibonacci sequenceJitterRetryexponential retry with a bit of randomness
SunPy is package for solar physics and is meant to be a free alternative to the SolarSoft data analysis environment.
It includes an interface for searching and downloading data from multiple data providers, data containers for image and time series data, commonly used solar coordinate frames and associated transformations, as well as other functionality needed for solar data analysis.
This package supports the efficient creation of hookable objects, which are callable objects that are meant to be optionally replaced. The idea is that you create a function that does some default thing and make i hookable. Later, someone can modify what it does by calling its sethook method and changing its implementation. All users of the function, including those that imported it, will see the change.
Python bindings for the C++ implementation of the Mapbox Earcut library, which provides very fast and quite robust triangulation of 2D polygons.
The library implements a modified ear slicing algorithm, optimized by z-order curve hashing and extended to handle holes, twisted polygons, degeneracies and self-intersections in a way that doesn't guarantee correctness of triangulation, but attempts to always produce acceptable results for practical data like geographical shapes.
zipstream.py is a zip archive generator based on zipfile.py. It was created to generate a zip file generator for streaming. This is beneficial for when you want to provide a downloadable archive of a large collection of regular files, which would be infeasible to generate the archive prior to downloading or of a very large file that you do not want to store entirely on disk or on memory.
This package provides Python implementation of ASDF - a proposed next generation interchange format for scientific data. ASDF aims to exist in the same middle ground that made FITS so successful, by being a hybrid text and binary format: containing human editable metadata for interchange, and raw binary data that is fast to load and use. Unlike FITS, the metadata is highly structured and is designed up-front for extensibility.
gcvb (generate compute validate benchmark) is a Python 3 module aiming at facilitating non-regression, validation and benchmarking of simulation codes. gcvb is not a complete tool of continuous integration (CI). It is rather a component of the testing part of a CI workflow. It can compare the different metrics of your computation with references that can be a file, depends of the 'configuration' or are absolute. This is the fork of Marek Felšöci.
This package provides pydantic typing support for astropy unit types. Can be used to de(serialize) astropy quantities and units.
Types:
AstroPydanticUnit: an overlay forastropy.units.UnitBase(all unit types).AstroPydanticQuantity: an overlay forastropy.units.Quantity, including array types.AstroPydanticTime: an overlay forastropy.time.Time.AstroPydanticICRS: an overlay forastropy.coordinates.ICRSandastropy.coordinates.SkyCoord.
The purpose of the ufonormalizer command is to provide a standard formatting so that updates to UFO data can be usefully versioned. Examples of formatting applied by ufoNormalizer include:
Changing floating-point numbers to integers where it doesn't alter the value (e.g. x="95.0" becomes x="95")
Rounding floating-point numbers to 10 digits
Formatting XML with tabs rather than spaces.
This package implements a functionality of AI-powered automated pipeline for lens modeling, with lenstronomy as the modeling engine.
Features:
AI-automated forward modeling for large samples of galaxy-scale lenses
flexible: supports both fully automated and semi-automated (with user tweaks) modes
multi-band lens modeling made simple
supports both galaxy–galaxy and galaxy–quasar systems
effortless syncing between local machines and High-Performance Computing Cluster
This is a set of functions for processing raw scDam&T-seq data. scDam&T-seq is a method to simultaneously measure protein-DNA interactions and transcription from single cells (Rooijers et al., 2019). It combines a DamID-based method to measure protein-DNA interactions and an adaptation of CEL-Seq to measure transcription. The starting point of the workflow is raw sequencing data and the end result are tables of UMI-unique DamID and CEL-Seq counts.
Pandoc is a powerful utility to transform various input formats into a wide range of output formats. To alter the exported output document, Pandoc allows the usage of filters, which are pipes that read a JSON serialization of the Pandoc AST from stdin, transform it in some way, and write it to stdout. It allows therefore to alter the processing of Pandoc's supported input formats, for instance one can add new syntax elements to markdown, etc.
This package provides Python bindings.
Deterministically encode JSON.
Encodes objects and arrays as RFC 7159 JSON.
Sorts object keys so that you get the same result each time.
Has no insignificant whitespace to make the output as small as possible.
Escapes only the characters that must be escaped, U+0000 to U+0019 / U+0022 / U+0056, to keep the output as small as possible.
Uses the shortest escape sequence for each escaped character.
Encodes the JSON as UTF-8.
Can encode frozendict immutable dictionaries.