semvec/pypi-packages huggingface dataset:
lazy-computing 0.1
Set of functional and lazy programming tools

Lazy computing
==============

Based on haskell features, exemples are worth a 1000 words

Usage
-----

.. code:: python

    from lazy_computing import *

.. code:: python

    for x in infinity: print(x)                         # 1 2 3 4 5 ...

    for x in remove(100, infinity): print(x)            # 100 101 102 103 ...
        
    for x in take(5, remove(100, infinity)): print(x)   # 100 101 102 103 104
        
    for x in arithm(1, 5, ...): print(x)                # 1 5 9 13 17 ...
        
    for x in arithm(1, 5, ..., 17): print(x)            # 1 5 9 13
        
    for x in geom(1, 5, ...): print(x)                  # 1 5 25 125 625 ...
        
    for x in geom(1, 5, ..., 500): print(x)             # 1 5 25 125 625 ...
        
    for x in tail([5, 6, 7, 8]): print(x)               # 6 7 8

    print(head([5, 6, 7, 8]))                           # 5
    print(extract(2, [5, 6, 7, 8]))                     # 7
        

Documentation
-------------

-  infinity: iterable representing the infinity
-  remove(number, iterable): return an iterator without the *number*
   first element
-  extract(index, iterable): return the value at *index* from iterable
-  take(limit, iterable): return an iterator taking *limit* first value
   from iterable
-  head(iterable): return the first value of an iterable
-  tail(iterable): return an iterator on an iterable, without the head
-  arithm(\*args): return an iterable. It guess the step from the
   arguments
-  geom(\*args): return an iterable: It guess the factor from the
   arguments
simpleriscv 1.0.6
Simple RISC-V code generator
Requires Python: >=3.0

# simpleriscv
Simpleriscv is a minimal tool for generating bare-metal [RISC-V](https://en.wikipedia.org/wiki/RISC-V) programs.
It was created to lower the barrier to entry for individuals who are curious about learning RISC-V and designing low-level systems.
The process of [building custom GCC toolchains](https://github.com/riscv/riscv-gnu-toolchain) may be necessary for more advanced RISC-V applications but, for beginners, this module provides a simple and quicker way to dive into projects and experimentation.

This package has no external dependencies which makes it cross-platform and easy to install.

## Installation
Simpleriscv can be installed via [pip](https://pip.pypa.io/en/stable/quickstart/).
```
pip install simpleriscv
```

## Usage
Simpleriscv can be used to generate and inspect RISC-V instructions on the fly:
```python
from simpleriscv import asm

print(asm.ADDI('x1', 'zero', 2))
print(asm.ADDI('x2', 'zero', 3))
print(asm.ADD('x3', 'x1', 'x2'))
```

It can also be used to build programs one instruction at a time:
```python
from simpleriscv import asm

p = asm.Program()
p.ADDI('x1', 'zero', 2)  # load 2 into register x1
p.ADDI('x2', 'zero', 3)  # load 3 into register x2
p.ADD('x3', 'x1', 'x2')  # add the values in x1 and x2 together and store into x3

# the program can be written to file...
# with open('output.bin', 'wb') as f:
#    f.write(p.machine_code)

# or simply printed
print(p.machine_code)
```

## Testing
Simpleriscv is tested using [pytest](https://docs.pytest.org/en/stable/).
The tests can be executed by running `pytest` in the repository's root directory.

## Resources
[RISC-V Spec](https://github.com/riscv/riscv-isa-manual/releases/download/draft-20200727-8088ba4/riscv-spec.pdf)
cromdriver 0.4.1
Auto downloader for chromedrivers
Requires Python: >=3.6

# Cromdriver
> Auto downloader for chromedriver

Cromdriver is a library to download automatically the latest Chromedriver release for Selenium.

![](docs/header.png)

Import the lib in your Selenium project and it will download and the AppData directory the latest release from [http://chromedriver.storage.googleapis.com/index.html](http://chromedriver.storage.googleapis.com/index.html).

You can get any version published in the website.

Drivers are downloaded : 

* **Mac OS X** : `~/Library/Application Support/cromdriver`
* **Unix** : `~/.local/share/cromdriver`
* **Windows** : `C:\Users\<username>\AppData\Local\cromdriver\cromdriver`

## Installation

Install the library with PIP

```sh
pip install cromdriver
```

## Usage example

There are two ways to use the library :

### Selenium python file

```python
from selenium import webdriver
import cromdriver

driver = webdriver.Chrome()
driver.get('https://www.google.com')
```

```python
import os
from selenium import webdriver
import cromdriver

path = os.path.join(cromdriver.get_chromedriver_path(), 'chromedriver.exe')

driver = webdriver.Chrome(executable_path=path)
driver.get('https://www.google.com')
```

### CLI

```console
~$ cromdriver get
Downloading version : 86.0.4240.22
Path : C:\Users\gauth\AppData\Local\cromdriver\cromdriver\RELEASE\86.0.4240.22

~$ cromdriver get --version 85.0.4183.87 --platform linux
Downloading version : 85.0.4183.87
Path : C:\Users\gauth\AppData\Local\cromdriver\cromdriver\RELEASE\85.0.4183.87
```

```console
~$ cromdriver test
Last release on your machine : 86.0.4240.22
Last release on http://chromedriver.storage.googleapis.com/index.html : 86.0.4240.22
```

```console
~$ cromdriver list
Chromedrivers downloaded :
   - 85.0.4183.87
   - 86.0.4240.22
```

```console
~$ cromdriver del --version 85.0.4183.87
Version 85.0.4183.87 deleted
```

When you use this CLI, PATH environnement variable is not updated. You will need to add the directory path to the ENV.

## Release History

* 0.4.0
    * CHANGE: Update README.md
    * ADD: Github action to deploy in Pypi
* 0.3.0
    * ADD : First working version
## Meta

Gauthier Chaty – [@gokender](https://twitter.com/gokender) – gauthier.chaty+github@outlook.com

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/Gokender](https://github.com/Gokender/)