semvec/pypi-packages huggingface dataset:
flittest 0.0.10
ooooooooo

# flittest

[![PyPI - Version](https://img.shields.io/pypi/v/flittest.svg)](https://pypi.org/project/flittest)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flittest.svg)](https://pypi.org/project/flittest)

-----

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install flittest
```

## License

`flittest` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
ypstruct 0.0.2
A simple and easy-to-use C/C++/MATLAB-like structure type for Python

# Yarpiz Structure (ypstruct)

A simple and easy-to-use C/C++/MATLAB-like structure type for Python


## Installation

You can use pip to install `ypstruct`:

    pip install ypstruct

If you want to install from source code, you can download from github or simply use:

    git clone https://github.com/smkalami/ypstruct

and then, run this:

    python setup.py install


## Sample Usage

The structure is defined by `struct` class. Also an alias of this class is defined and available as `structure`.

A simple usage code of `ypstruct.struct` follows.

    from ypstruct import *

    p = struct()
    p.x = 3
    p.y = 4
    p.A = p.x * p.y
    print(p)

The output will be:

    struct({'x': 3, 'y': 4, 'A': 12})

Here, after importing the `struct` (and its alias `structure`) from `ypstruct`, an instance of `struct` is created and then fields `x` and `y` are defined. Then, a new field `A` is added to the structure. Finally, the string representation of the `struct` is printed.

In the previous code, you can simply use the following method to create and initialize the structure.

    p = struct(x=3, y=4)
    p.A = p.x * p.y

## Merging Structures

It is possible to merge two `struct` objects. For example let's define two structures as:

    a = struct(x=1, y=2, z=3)
    b = struct(y=5, t=20, u=30)

We can merge these structure using `+` operator:

    c = a + b
    print(c)

The output will be:

    struct({'x': 1, 'y': 5, 'z': 3, 't': 20, 'u': 30})

## Repeating a Structure

Sometimes we need to repeat/replicate a structure. For example, assume that we are going to implement an Evolutionary Algorithm and we defined the individuals as `struct` objects. First we need to create a template:

    empty_individual = struct(pos=None, fval=None)

Then we can initialize the population array using following code:

    pop_size = 10
    pop = empty_individual.repeat(pop_size)

Or simply we can use `*` operator to perform replication:

    pop = empty_individual * pop_size
fsetools 0.0.5
Fire Safety Engineering Tools
Keywords: fire,safety,engineering

# fsetools

[![Build Status](https://travis-ci.com/fsepy/fsetools.svg?branch=master)](https://travis-ci.com/fsepy/fsetools)

Fire Safety Engineering Tools.

## Getting Started

Documentation is work in progress.

### Installation

[Python](https://www.python.org/downloads/) 3.7 or later is required. [Anaconda Distribution](https://www.anaconda.com/distribution/#download-section) is recommended for new starters, it includes Python and few useful packages including a package management tool pip (see below).

[pip](https://pypi.org/) is a package management system for installing and updating Python packages. pip comes with Python, so you get pip simply by installing Python. On Ubuntu and Fedora Linux, you can simply use your system package manager to install the `python3-pip` package. [The Hitchhiker's Guide to Python](https://docs.python-guide.org/starting/installation/) provides some guidance on how to install Python on your system if it isn't already; you can also install Python directly from [python.org](https://www.python.org/getit/). You might want to [upgrade pip](https://pip.pypa.io/en/stable/installing/) before using it to install other programs.

1. to use `pip` install from PyPI:

    ```sh
    pip install --upgrade fsetools
    ```

2. to use `pip` install from GitHub (requires [git](https://git-scm.com/downloads)):  

    *Note installing `fsetools` via this route will include the latest commits/changes to the library.*  

    ```sh
    pip install --upgrade "git+https://github.com/fsepy/fsetools.git@dev"
    ```


### Command line interface

Once `fsetools` is installed, CLI help can be summoned using the following command in a terminal:

```shell
(base) C:\Users\Fu>fsetools -h
```

Remember to change to the correct Python environment if appropriate.

## Authors

**Ian Fu** - *fuyans@gmail.com*

## License

This project is licensed under the Apache License version 2.0 - see the [LICENSE](LICENSE) file for details