semvec/pypi-packages huggingface dataset:
tempailab 0.0.7
artificial intelligence and DBMS lab programs definitions
License: MIT
Requires Python: >=3.7
Keywords: artificial intelligence lab,DBMS lab,aimllab module

# AIML & DBMS Lab program
              
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)   
## Functions 
- isprime(number)
- tsp(graph,starting point)
- nqueen(number)
- longtictactoe()

## Programs will be returned for call
### a lab

- p_multiplicationtable
- p_primeornot
- p_factorial
- p_list_operations
- p_list_methods
- p_chatbot
- p_set_operation
- p_count_s1_in_s2
- p_dictionary_operations
- p_n_queen
- p_tsp
- p_longtictactoe

### - <u>dbms lab</u>
- p_library
- p_order
- p_movie
- p_college
- p_comp  

## Usage
```
import tempailab
```

## Get the list of sql programs

```
print(tempailab.sql_programs)
```

## Get the list of ai programs

```
print(tempailab.ai_programs)
```

## Example
### run it 
```
import tempailab
print(tempailab.isprime(3))
```
### Output
```
3 is a prime number
```
lcmlog-py 0.1.0
LCM log utilities
License: MIT
Requires Python: >=3.7,<4.0

# lcmlog-py

LCM log utilities

## Installation

`lcmlog-py` is available on PyPI:

```bash
pip install lcmlog-py
```

## Usage

### Events

`lcmlog-py` provides classes to abstract the LCM log file format. The `Event` class represents a single event in the log file. An `Event` is composed of a header, channel string, and data byte array.

The `Header` class represents a fixed-length header at the beginning of each event which describes the event number, timestamp, and channel/data lengths. This is parsed first, and then the channel and data are read in.

If the header is read incorrectly or is corrupt, a `BadSyncError` is raised.

To read a header, call the `Header.from_file` method:

```python
from lcmlog import Header

with open('lcmlog', 'rb') as f:
    header = Header.from_file(f)

print(header.timestamp)  # e.g.
```

A full event can be read via the `Event.from_file` method:

```python
from lcmlog.event import Event

with open('lcmlog', 'rb') as f:
    event = Event.from_file(f)

print(event.header.timestamp)
print(event.channel)  # e.g.
```

### Log Reader & Writer

`lcmlog-py` also provides two utility classes for reading and writing LCM log files in order.

The `LogReader` reads events from a file (starting at the beginning) and the `LogWriter` writes events to a file. The `LogReader` class is iterable. Both classes close their respective files when they are garbage collected.

```python
from lcmlog import LogReader, LogWriter

reader = LogReader('lcmlog_source')
writer = LogWriter('lcmlog_dest')

# Read and write each event
for event in reader:
    writer.write(event)
```