semvec/pypi-packages huggingface dataset:
nsp2visasim 1.4.1.post2
A simulated device for measuring LED characteristics.
License: MIT
Requires Python: <4.0,>=3.8

# nsp2visasim

This package contains a simulation of an Arduino VISA device connected to a small circuit to measure the voltage versus current characteristics of a LED. It is created for a [programming course](https://natuurkundepracticumamsterdam.github.io/ecpc/) in the physics and astronomy joint degree bachelor programme at the Vrije Universiteit and the University of Amsterdam. Students use the actual device and circuit while on campus. This package simulates [this firmware](https://github.com/davidfokkema/arduino-visa-firmware).


## Usage

In your controller code, replace:

```python
import pyvisa
```

with:

```python
try:
      from nsp2visasim import sim_pyvisa as pyvisa
except ModuleNotFoundError:
      import pyvisa
```

Then, if you use Poetry, add it to your existing project with:

```console
poetry add --group dev nsp2visasim
```

If you don't use Poetry, install `nsp2visasim` with:

```console
pip install nsp2visasim
```

You now appear to have an additional VISA device connected to your system. If an
actual Arduino is attached, you can choose to open the simulation or the actual
Arduino by selecting the correct port name. Your code should work exactly the
same as before.

A session might look like this:

```console
$ diode list                               
The following devices are connected to your computer:

ASRL/dev/cu.URT1::INSTR
ASRL/dev/cu.URT2::INSTR
ASRL/dev/cu.Bluetooth-Incoming-Port::INSTR
ASRL/dev/cu.usbmodem14501::INSTR
ASRL::SIMLED::INSTR

$ diode info SIMLED
Device identification: Simulated Arduino VISA firmware (LED experiment)

$ diode measure SIMLED -v 2.5 -n 10
Measured current through diode: 3.048 +- 0.030 mA @ 1.805 +- 0.011 V.
```
parseify 0.6
Get any information from any website you need.
License: MIT

# Parseify

Get any information from any website you need.

## Installation

```bash
pip install parseify
```

## Usage

```python
from parseify import OpenAIParser, RequestsScraper, ScraperAPIScraper, ScrapingBeeScraper, WebsiteAnalyzer

# Initialize the library

scraper = ScrapingBeeScraper(api_key="your-api-key-here")
parser = OpenAIParser(api_key="your-api-key-here")
analyzer = WebsiteAnalyzer(scraper_engine=scraper, parser_engine=parser)

# Define schema
schema = {
    "mission": "La mission de l'entreprise",
    "news": "Actualités de l'entreprise",
}

# Analyze a website
results = analyzer.analyze("https://mistral.ai/fr/", schema)
print(results)
```

Will return: 
```json
{
  "mission": "We lead the market of open source generative technologies to bring trust and transparency in the field and foster decentralised technology development.",
  "news": "Mistral is introducing new products and services including a free API, improved pricing for their services, and a moderation service for text content detection. They have also announced the Mistral Small and Pixtral Large models, aimed at AI builders.",
  "visited_links": [
    "https://mistral.ai/fr/",
    "https://mistral.ai/news"
  ],
  "logos": [],
  "favicon": "https://mistral.ai/images/favicon/apple-touch-icon.png"
}

```

## Available scrapers

Currently, the library supports the following scrapers:

**ScraperAPI**
``` 
scraper = ScraperAPIScraper(api_key="", render=True)
```

**ScrapingBee**
```
scraper = ScrapingBeeScraper(api_key="", render=True)
```

**Default HTTP request**
```
scraper = RequestsScraper()
```

JS rendering (supported by ScraperAPI and ScrapingBee) is often recommended.