PyFAI is an azimuthal integration library that tries to be fast (as fast as C and even more using OpenCL and GPU). It is based on histogramming of the 2theta/Q positions of each (center of) pixel weighted by the intensity of each pixel, but parallel version uses a SparseMatrix-DenseVector multiplication. Neighboring output bins get also a contribution of pixels next to the border thanks to pixel splitting. Finally pyFAI provides also tools to calibrate the experimental setup using Debye-Scherrer rings of a reference compound.
This package provides Python bindings to Zulip's API.
Included common integrations and bridges are located in share/zulip/integrations or in lib/<...>/site-packages/integrations:
bridge_between_zulips
bridge_with_irc
bridge_with_matrix
bridge_with_slack
codebase
git
google
hg
jabber
jira
litellm
log2zulip
nagios
openshift
perforce
rss
svn
trac
trello
twitter
zephyr
The package provides `zulip-irc-bridge' and `zulip-matrix-bridge' as standalone scripts.
A wheel is a ZIP-format archive with a specially formatted filename and the .whl extension. It is designed to contain all the files for a PEP 376 compatible install in a way that is very close to the on-disk format. Many packages will be properly installed with only the Unpack step and the unpacked archive preserves enough information to Spread (copy data and scripts to their final locations) at any later time. Wheel files can be installed with a newer pip or with wheel's own command line utility.
A wheel is a ZIP-format archive with a specially formatted filename and the .whl extension. It is designed to contain all the files for a PEP 376 compatible install in a way that is very close to the on-disk format. Many packages will be properly installed with only the Unpack step and the unpacked archive preserves enough information to Spread (copy data and scripts to their final locations) at any later time. Wheel files can be installed with a newer pip or with wheel's own command line utility.
This package enables to build Probability of Detection (POD) curves from Non Destructive Test. The curves are built using parametric models: univariate linear regression, quantile regression, kriging and polynomial chaos. Analysis can be run in order to test the linear regression hypothesis.
PoD can be built from a set of data or directly from a given physical model that simulate the Non Destructive Test. In this case, the design of experiments is defined iteratively.
Sensitivity analysis can be also be performed. The aggregated Sobol indices are available as well as the perturbation law indices.
This Python library provides functionality for communicating with a Fast IDentity Online (FIDO) device over Universal Serial Bus (USB) as well as verifying attestation and assertion signatures. It aims to support the FIDO Universal 2nd Factor (U2F) and FIDO 2.0 protocols for communicating with a USB authenticator via the Client-to-Authenticator Protocol (CTAP 1 and 2). In addition to this low-level device access, classes defined in the fido2.client and fido2.server modules implement higher level operations which are useful when interfacing with an Authenticator, or when implementing a Relying Party.
This is an extended version of the Python built-in glob module which adds:
The ability to capture the text matched by glob patterns, and return those matches alongside the file names.
A recursive
**globbing syntax, akin for example to theglobstaroption of Bash.The ability to replace the file system functions used, in order to glob on virtual file systems.
Compatible with Python 2 and Python 3 (tested with 3.3).
Glob2 currently based on the glob code from Python 3.3.1.
Succinct tree sequences are an efficient way of representing the genetic history - often technically referred to as an Ancestral Recombination Graph or ARG - of a set of DNA sequences.
The tree sequence format is output by a number of external software libraries and programs (such as msprime, SLiM, fwdpp, and tsinfer) that either simulate or infer the evolutionary ancestry of genetic sequences. This library provides the underlying functionality that such software uses to load, examine, and manipulate ARGs in tree sequence format, including efficientaccess to the correlated sequence of trees along a genome and general methods to calculate genetic statistics.
BBKNN is a batch effect removal tool that can be directly used in the Scanpy workflow. It serves as an alternative to scanpy.api.pp.neighbors(), with both functions creating a neighbour graph for subsequent use in clustering, pseudotime and UMAP visualisation. If technical artifacts are present in the data, they will make it challenging to link corresponding cell types across different batches. BBKNN actively combats this effect by splitting your data into batches and finding a smaller number of neighbours for each cell within each of the groups. This helps create connections between analogous cells in different batches without altering the counts or PCA space.
MrSQM, Multiple Representations Sequence Miner is a time series classifier. The MrSQM method can quickly extract features from multiple symbolic representations of time series and train a linear classification model with logistic regression. The method has four variants with four different feature selection strategies:
MrSQM-R: Random feature selection.
MrSQM-RS: MrSQM-R with a follow-up Chi2 test to filter less important features.
MrSQM-S: Pruning the all-subsequence feature space with a Chi2 bound and selecting the optimal set of top k subsequences.
MrSQM-SR: Random sampling of the features from the output of MrSQM-S.
green is a Python test runner that describes itself as:
- Clean
Low redundancy in output. Result statistics for each test is vertically aligned.
- Colorful
Terminal output makes good use of color when the terminal supports it.
- Fast
Tests run in independent processes (one per processor by default).
- Powerful
Multi-target and auto-discovery support.
- Traditional
It uses the normal
unittestclasses and methods.- Descriptive
Multiple verbosity levels, from just dots to full docstring output.
- Convenient
Bash-completion and ZSH-completion of options and test targets.
- Thorough
Built-in integration with coverage.
This Python library provides encoding and decoding for the Concise Binary Object Representation (CBOR) (RFC 8949) serialization format. The specification is fully compatible with the original RFC 7049. Among its features are:
Simple API like the
jsonorpicklemodules.Support many CBOR tags with stdlib objects.
Generic tag decoding.
Shared value references including cyclic references.
String references compact encoding with repeated strings replaced with indices.
Optional C module backend tested on big- and little-endian architectures.
Extensible tagged value handling using tag_hook and object_hook on decode and default on encode.
POPPY is a Python package that simulates physical optical propagation including diffraction. It implements a flexible framework for modeling Fraunhofer and Fresnel diffraction and point spread function formation, particularly in the context of astronomical telescopes.
POPPY was developed as part of a simulation package for the James Webb Space Telescope, but is more broadly applicable to many kinds of imaging simulations. It is not, however, a substitute for high fidelity optical design software such as Zemax or Code V, but rather is intended as a lightweight alternative for cases for which diffractive rather than geometric optics is the topic of interest, and which require portability between platforms or ease of scripting.
Keras 3 is a multi-backend deep learning framework, with support for JAX, TensorFlow, PyTorch, and OpenVINO (for inference-only). Effortlessly build and train models for computer vision, natural language processing, audio processing, timeseries forecasting, recommender systems, etc.
Accelerated model development: Ship deep learning solutions faster thanks to the high-level UX of Keras and the availability of easy-to-debug runtimes like PyTorch or JAX eager execution.
State-of-the-art performance: By picking the backend that is the fastest for your model architecture (often JAX!), leverage speedups ranging from 20% to 350% compared to other frameworks.
Datacenter-scale training: Scale confidently from your laptop to large clusters of GPUs or TPUs.
sgkit is a Python package that provides a variety of analytical genetics methods through the use of general-purpose frameworks such as Xarray, Pandas, Dask and Zarr. The sgkit API makes as few assumptions as possible about the origin, structure, and intended use of genetic data by adopting a set of domain-specific conventions that allow such data to be used within this broader ecosystem of tools. The package is designed for complex workflows over large distributed datasets but attempts to make it as easy as possible to scale down to smaller datasets and access simpler functionality for those that may be new to Python (though there is still a good bit of work to done on this front).
hissw (hiss (like a snake) + SSW) is a (VERY) lightweight (~1 file) Python package that helps one to write IDL scripts (either inline or in a separate file) which use your installed SSW packages and return the results to local Python namespace. hissw uses Jinja2 templates to generate SSW startup scripts and then runs IDL code using subprocess, i.e. the shell. Jinja2 syntax may be used to inject arguments from Python into IDL. The results are then saved to a file and then loaded back in using the amazing readsav() function in scipy.io.
This package provides a Python implementation of the SDMX 2.1 and 3.0 standards for Statistical Data and Metadata eXchange. These standards are developed and used by statistical agencies and international organisations. This package can be used to:
Explore and retrieve data available from SDMX-REST web services operated by providers including the World Bank, International Monetary Fund, Eurostat, OECD, and United Nations;
Read and write data and metadata in file formats including SDMX-ML (XML), SDMX-JSON, and SDMX-CSV;
Convert data and metadata into
python-pandasobjects, for use with the analysis, plotting, and other tools in the Python data science ecosystem;Apply the SDMX information model (IM) to structure and publish your own data.
funcy is a library that provides functional tools. Examples are:
merge - Merges collections of the same type
walk - Type-preserving map
select - Selects a part of a collection
take - Takes the first n items of a collection
first - Takes the first item of a collection
remove - Predicated-removes items of a collection
concat - Concatenates two collections
flatten - Flattens a collection with subcollections
distinct - Returns only distinct items
split - Predicated-splits a collection
split_at - Splits a collection at a given item
group_by - Groups items by group
pairwise - Pairs off adjacent items
partial - Partially-applies a function
curry - Curries a function
compose - Composes functions
complement - Complements a predicate
all_fn - "all" with predicate
funcy is a library that provides functional tools. Examples are:
merge - Merges collections of the same type
walk - Type-preserving map
select - Selects a part of a collection
take - Takes the first n items of a collection
first - Takes the first item of a collection
remove - Predicated-removes items of a collection
concat - Concatenates two collections
flatten - Flattens a collection with subcollections
distinct - Returns only distinct items
split - Predicated-splits a collection
split_at - Splits a collection at a given item
group_by - Groups items by group
pairwise - Pairs off adjacent items
partial - Partially-applies a function
curry - Curries a function
compose - Composes functions
complement - Complements a predicate
all_fn - "all" with predicate
The PyPNG module implements support for PNG images. It reads and writes PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA, LA (greyscale with alpha) with 8/16 bits per channel; colour mapped images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing. A number of optional chunks can be specified (when writing) and understood (when reading): tRNS, bKGD, gAMA.
PyPNG is not a high level toolkit for image processing (like PIL) and does not aim at being a replacement or competitor. Its strength lies in fine-grained extensive support of PNG features. It can also read and write Netpbm PAM files, with a focus on its use as an intermediate format for implementing custom PNG processing.
This package implements a functionality to deal with RabbitMQ Streams using asyncio.
It is designed and implemented with the following qualities in mind:
asynchronous Pythonic API with type annotations
use of AMQP 1.0 message format to enable interoperability between RabbitMQ Stream. clients
auto reconnection to RabbitMQ broker with lazily created connection objects
Support of many RabbitMQ Streams broker features:
publishing single messages, or in batches, with confirmation
subscribing to a stream at a specific point in time, from a specific offset, or using offset reference
stream message filtering
writing stream offset reference
message deduplication
integration with AMQP 1.0 ecosystem at message format level
Ginga is a toolkit designed for building viewers for scientific image data in Python, visualizing 2D pixel data in numpy arrays. It can view astronomical data such as contained in files based on the FITS (Flexible Image Transport System) file format. It is written and is maintained by software engineers at the National Astronomical Observatory of Japan (NAOJ), the Space Telescope Science Institute (STScI), and other contributing entities.
The Ginga toolkit centers around an image display object which supports zooming and panning, color and intensity mapping, a choice of several automatic cut levels algorithms and canvases for plotting scalable geometric forms. In addition to this widget, a general purpose "reference" FITS viewer is provided, based on a plugin framework. A fairly complete set of standard plugins are provided for features that we expect from a modern FITS viewer: panning and zooming windows, star catalog access, cuts, star pick/FWHM, thumbnails, etc.
HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.
HTTPX builds on the well-established usability of requests, and gives you:
A broadly requests-compatible API.
Standard synchronous interface, but with async support if you need it.
HTTP/1.1 and HTTP/2 support.
Ability to make requests directly to WSGI applications or ASGI applications.
Strict timeouts everywhere.
Fully type annotated.
99% test coverage.
Plus all the standard features of requests:
International Domains and URLs
Keep-Alive & Connection Pooling
Sessions with Cookie Persistence
Browser-style SSL Verification
Basic/Digest Authentication
Elegant Key/Value Cookies
Automatic Decompression
Automatic Content Decoding
Unicode Response Bodies
Multipart File Uploads
HTTP(S) Proxy Support
Connection Timeouts
Streaming Downloads
.netrc Support
Chunked Requests
APLpy is a Python module aimed at producing publication-quality plots of astronomical imaging data in FITS format. The module uses matplotlib, a powerful and interactive plotting package. It is capable of creating output files in several graphical formats, including EPS, PDF, PS, PNG, and SVG.
Main features:
Make plots interactively or using scripts
Show grayscale, colorscale, and 3-color RGB images of FITS files
Generate co-aligned FITS cubes to make 3-color RGB images
Make plots from FITS files with arbitrary WCS (e.g. position-velocity)
Slice multi-dimensional FITS cubes
Overlay any number of contour sets
Overlay markers with fully customizable symbols
Plot customizable shapes like circles, ellipses, and rectangles
Overlay ds9 region files
Overlay coordinate grids
Show colorbars, scalebars, and beams
Customize the appearance of labels and ticks
Hide, show, and remove different contour and marker layers
Pan, zoom, and save any view as a full publication-quality plot
Save plots as EPS, PDF, PS, PNG, and SVG