semvec/pypi-packages huggingface dataset:
sourcerandom 1.0.2
Python package for alternate true random number generator using sources provided by either TRNG online services, plaintext uint8 files (separated by whitespace) or collections of ints.
License: MIT
Requires Python: >=3.5.2

sourcerandom for Python
============

True randomness, with minimal fuss.

Alternate random number generator using sources provided by either True Random Number Generator online services ([RANDOM.org](http://random.org) and [qrng.anu.edu.au](http://qrng.anu.edu.au)), plaintext uint8 files (separated by whitespace) or collections of ints.

sourcerandom's ``SourceRandom`` class extends ``SystemRandom`` class found in default ``random`` package, and only overwrites the ``getrandbits`` method, meaning all of the functionality of ``random`` package is included and unchanged.

sourcerandom obtains bytes from the given source, which are then used to generate random numbers. The bytes are cached for quick access - the amount of cached bytes can be set by the user.

``OnlineRandomnessSource`` enumerator is provided to easily choose between RANDOM.org (``RANDOM_ORG``) and qrng.anu.edu.au (``QRNG_ANU``).

Since the bytes generated by the online services are truly random (please refer to the services for explanation), they can be theoretically used for cryptography instead of OS sources. However, I hold no responsibility for any problems or damages this may cause.

Async/multithread friendly.

Requires Python 3.5.2 or above, and the ``requests`` package.

Pull requests are encouraged :D

Installing
----------

    pip install sourcerandom

Usage
----------

    import sourcerandom

    # From an online source

    RAND_GEN = sourcerandom.SourceRandom(source=sourcerandom.OnlineRandomnessSource.QRNG_ANU) # Initialize the generator - use the same generator to take advantage of caching

    print(RAND_GEN.randint(0, 20)) # Every method from random package is included

    # From file

    RAND_GEN = sourcerandom.SourceRandom(source="path/to/file") # File has to be a plaintext file with integers from range of 0 to 255 separated by whitespace, path is a simple string, relative to working directory. Files are read in cache_size chunks.

    # From collection

    BYTES_LIST = [ 0, 156, 245, 63, 52 ] # Integers from range of 0 to 255 separated by whitespace

    RAND_GEN = sourcerandom.SourceRandom(source=BYTES_LIST)
feastruct 0.1
A python package for structural finite element analysis.
License: MIT

# feastruct
a python package for structural finite element analysis.

*currently under development...*

## Current Capabilities:

### Pre-Processor
- [x] Python Interface
- [ ] Input File
- [ ] .dxf Import
- [ ] Triangular Meshing
- [ ] Structure Generator Functions

### Finite Element Analysis
- [x] 2D Frame
  - [x] Euler Bernoulli Frame Element
  - [ ] Timoshenko Frame Element
  - [ ] Truss Element
- [ ] 2D Membrane (Plane Stress/Plane Strain)
  - [ ] 3-Noded Triangular Element
  - [ ] 6-Noded Triangular Element
- [ ] Plate Elements
- [ ] Shell Elements
- [ ] 3D Frame Elements

### Element Formulations
- [x] Geometrically Linear
- [ ] Geometrically Non-Linear
- [ ] Material Non-Linearity

### Loading/Restraints
- [x] Applied Loads
  - [x] Nodal Loads
  - [ ] Surface (Distributed) Loads
  - [ ] Body Loads
  - [x] Load Cases
- [x] Restraints
  - [x] Nodal Supports
  - [ ] Surface Supports
  - [ ] Nodal Springs
  - [x] Freedom Cases
- [x] Analysis Cases

### Solvers
- [x] Linear Static Solver
- [ ] Non-Linear Static Solver
- [x] Linear Buckling Solver
- [x] Natural Frequency Solver
- [ ] Linear Dynamic Solver
- [ ] Non-Linear Dynamic Solver

### Post-Processor
- [x] Structural Mesh and Boundary Conditions
- [x] Deformed Mesh
- [x] Reaction Forces
- [x] 2D Frame Actions (N, V, M)
- [x] Buckling Mode Shapes
- [x] Natural Frequency Mode Shapes
- [ ] Deformed Contour Plot
- [ ] Continuum Stress Contour Plot

### Additional Modules
- [ ] Optimisation