semvec/pypi-packages huggingface dataset:
pyvisq 1.2.2
An open-source package to model/visualize viscoelastic responses.
Requires Python: >=3.11

# pyvisq
An open-source package to model/visualize viscoelastic responses.

# Models
Run the code below to see available models:

```python
from pyvisq.models import hierarchy

hierarchy.show()
```

Output:
```
models\burgers
  ├── Burgers
models\elements
  ├── Spring
  ├── Dashpot
  ├── Springpot
models\generalized
  ├── Generalized
models\kelvinvoigt
  ├── KelvinVoigt
  ├── FracDashpotKelvinVoigt
  ├── FracSpringKelvinVoigt
  ├── FracKelvinVoigt
models\maxwell
  ├── Maxwell
  ├── FracDashpotMaxwell
  ├── FracSpringMaxwell
  ├── FracMaxwell
models\powerlaw
  ├── Powerlaw
models\poynting_thomson
  ├── SLSPT
  ├── JeffreysPT
  ├── FracSLSPT
  ├── FracJeffreysPT
  ├── FracPT
models\zener
  ├── SLS
  ├── JeffreysZener
  ├── FracJeffreysZener
  ├── FracSolidZener
  ├── FracSLSZener
  ├── FracZener
```

# Example:
```python
from pyvisq import Test, TestMethod
from pyvisq.models import zener

# Define the test method and parameters
method = TestMethod.CREEP
test_params = {
    "I": 1.0,
    "D1": 0.01,
    "L1": 2,
    "D2": 0.01,
    "L2": 2
}
test = Test(method=method, **test_params)
"""
input profile:
    I   ==========
      //:        :\\
     // :        : \\
    //  :D1      :L1\\D2==========L2
"""

# Define the Zener model parameters
dashpot_a = zener.DashpotParams(c=1)
spring_b = zener.SpringParams(k=1)
spring_c = zener.SpringParams(k=1)
sls_params = zener.SLSParams(
    dashpot_a=dashpot_a,
    spring_b=spring_b,
    spring_c=spring_c
)
sls = zener.SLS(params=sls_params)

# Print the SLS model diagram and parameters
print(sls)
""" Output:
                    ___
                 ____| |______╱╲  ╱╲  ╱╲  _____
                |   _|_|  ca    ╲╱  ╲╱  ╲╱  kb |
            ____|                              |____
                |                              |
                |__________╱╲  ╱╲  ╱╲  ________|
                             ╲╱  ╲╱  ╲╱  kc

SLSParams(dashpot_a=DashpotParams(c=1), spring_b=SpringParams(k=1), spring_c=SpringParams(k=1))
"""

# Set up and run the test
sls.set_test(test)
sls.set_time()
sls.set_input()  # Optional: set the input profile for visualization
sls.run()
```

# References
+ J. L. Kaplan, A. Bonfanti, A. J. Kabla (2019). RHEOS.jl -- A Julia Package for Rheology Data Analysis. Journal of Open Source Software, 4(41), 1700, https://doi.org/10.21105/joss.01700

+ A. Bonfanti, J. L. Kaplan, G. Charras, A. J. Kabla (2020). Fractional viscoelastic models for power-law materials. Soft Matter, 16, 6002-6020, https://doi.org/10.1039/D0SM00354A
pytenter 0.1.10
pdfjinja fork with updated libraries
Requires Python: >=3.6

```bash
pytenter/
├── .github/                      # for gh actions 
├── pytenter/                     # Main package folder 
│   ├── __init__.py               # Makes the folder a package
│   └── pytenter.py               # the main code
├── LICENSE                       # the license
├── README.md                     # Project documentation
├── setup.py                      # Package setup file
└── requirements.txt              # Dependencies list

```
# Introduction
Hi this is my fork from the original [pdfjinja](https://github.com/rammie/pdfjinja)

# Install

# Usage

# Documentation


# Dependencies
crashless 0.0.20
Bugless future for our sanity sake
Requires Python: >=3.8

# Crashless
**Crash proof your code**

Crashless enables you to catch those pesky bugs during backend development and correct them in real-time. Makes your development cycle smooth, so you can actually focus on building what actually matters.


## Installation

Crashless is published as a Python package and can be installed with pip, ideally by using a virtual environment. Open up a terminal and install Crashless with:

    pip install crashless


## Add to FastAPI in 3 steps

1. Copy and paste the following server with a crashed endpoint to a file called `main.py`:

        from fastapi import FastAPI
    
        app = FastAPI()


        @app.get("/")
        def read_root():
            return {"message": "The server is running OK!"}
    
    
        @app.get("/crash")  # This endpoint has a fatal bug :(
        def crash():
            result = 8 + '7'
            return {'msg': f"Summing a+b = {result}"}
        
        
        # Adds Crashless
        import sys
        from crashless import fastapi_handler  # Imports library
        
        
        def in_dev_mode():
            """Knows if you are running in production or development mode"""
            return sys.argv[1] == 'dev'
        
        
        if in_dev_mode():  # If in dev mode adds an exception handler, that will suggest a possible fix.
            app.add_exception_handler(Exception, fastapi_handler.handle_exception)


    As you can see the `/crash` endpoint has an issue.


2. Run the server with:

        fastapi dev main.py

    If you don't have the fastapi command follow instructions [here][1].

    [1]: <https://fastapi.tiangolo.com/fastapi-cli/> "fastapi CLI installation"



3. Go to <http://127.0.0.1:8000> and check that it's running OK.

    Then go to <http://127.0.0.1:8000/crash> and see how it crashes.

    Now go to the terminal, where the server is running, and you'll see something like this:

        TypeError: unsupported operand type(s) for +: 'int' and 'str'

        Crashless detected an error, let's fix it!
        Loading possible solution...
        The following code changes will be applied:
 
         @app.get("/crash")  # This endpoint has a fatal bug :(
         def crash():
        -    result = 8 + '7'
        +    result = 8 + int('7')
         return {'msg': f"Summing a+b = {result}"}


        Explanation: The error occurred because you cannot add an integer and a string directly. The fix converts the string '7' to
        an integer using int('7') before performing the addition.

   You can apply changes by ENTERING a `y`. The changes will take place and the api reloads. If you try again you get 15!


## Add to Django in 3 steps

coming soon!

## Add to Flask in 3 steps

coming soon!


## Links

**Source Code:** <https://github.com/jisazaTappsi/crashless>

**Python library**: <https://pypi.org/project/crashless/>