semvec/pypi-packages huggingface dataset:
gambit-bromine 0.4.3
Pythonic web testing
Requires Python: >=3.8

# Bromine: pythonic web testing

Bromine is a wrapper around [selenium] to allow writing testing in a terse and
*pythonic* rather that *java-esque* way.

[selenium]: https://www.seleniumhq.org/

Selenium is cool: you register browser to a hub, you ask browsers from a hub,
you use the browser, and you put it back. It works like magic.

Except if you want to use https. But who needs https these days?

Anyway, enough dissing well intentioned web testing systems. Let's talk bad
about bad testing system. You know what you have to do to wait for a page to
load after a get, and then check if an element is visible? The selenium docs
[will tell you](https://selenium-python.readthedocs.io/waits.html#explicit-waits):

```python
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

# ...
driver.get("http://example.com")
element = WebDriverWait(driver, 10).until(
	EC.presence_of_element_located((By.ID, "myDynamicElement"))
)
```

I've been kind and I've stripped some boilerplate. If you are happy about
importing three objects from 4 levels of namespaces and create a wait object
and pass a 2-element tuple to the "convenience method"
`selenium.webdriver.support.expected_conditions.visibility_of_element_located`
for a thing you have to do pretty much every time you click on a link, please
stop reading here: type `pip install selenium` and off you go. The following
paragraph is only for people who think the above is unsatisfactory in Python.

Still reading? Sure?

Well, I'll be honest: what I prefer to do is:

```python
import bromine
browser = bromine.Browser(driver)
element = browser.get("http://example.com/").wait(id='myDynamicElement')
```
musegan 0.1.5
A pytorch implementation of musegan
Requires Python: >=3.10

MuseGAN
=========
![PyPI - License](https://img.shields.io/pypi/l/musegan)
[![PyPI](https://img.shields.io/pypi/v/musegan)](https://pypi.org/project/musegan/)
![PyPI - Downloads](https://img.shields.io/pypi/dw/musegan)

- A Pytorch implementation of MuseGAN
- ***Note :*** Only linux BSD support due to SharedArray usage which is a linux only pip package




[MuseGAN](https://arxiv.org/abs/1709.06298) is a generative model which allows to
generate music.

Usage
=======
The musegan package contains all the schema needed to train and generate your own music in MIDI format.
There are two ways of using the musegan package;

1. Using the PYPI package.
   - To use it use the command: `pip install musegan` to install all the necessary packages

2. Building from the source 
   - First clone the repository to your local directory with `git`
   - Open your local Terminal/Command Shell and run the following commands
    ```shell
    cd musegan-pytorch # change directory to the cloned repository
    #use any of the following some will work dependent on your operating system
    #try
    python3 setup.py develop
    #or
    pip install .
    #or
    pip install -e
    ```
    - To test run the following in your python terminal;
    ```py
    >> import musegan
    >> print(musegan__version__)
    # which should return the latest musegan version according to the time you read this
    0.0.9
    ```
    Now you should be able to use zthe musegan packages
    
## Table of content

- [Training](https://github.com/cliffordkleinsr/musegan-pytorch/edit/dev/README.md#training)
- [License](#license)
- [Links](#links)

## Training 

See this [colab](https://colab.research.google.com/drive/1NF2t1dvqxeblZfd7BL4Gfn4SW-xEzgGg?authuser=3#scrollTo=9bj_FWvAArPI)  notebook for more details of training process.
* The model components and utils are under `musegan/archs` folder.
* The Midi `torch.utils.dataset` is under `musegan/dataset/data_utils.py`.
* The training Functions and criterions can be found in the `musegan/trainner` folder




## License

This project is licensed under MIT.

## Links

* [MuseGAN](https://arxiv.org/abs/1709.06298)
pyterrain 0.0.2
A Python package to fetch terrain data easily.
Requires Python: >=3.8

# pyterrain
A python package to fetch terrain.

# Installation
You can install by pip `$ pip install pyterrain`

# Usage

## Register API Key
Pyterrain doesn't offer terrain data by itself, it fetches data from another website. Before downloading data, you should sign up an API key from [nextzen.org](https://developers.nextzen.org/). The key's pattern is like `Dto0r88DQuaQizoxcQSxxx`

## Fetch DEM by bound box
When API key is reday, you can download DEM data like this:

```python
bbox = 108.444319, 20.161757, 111.318897, 18.05883  # Hainan province of China

terrain = Terrain("Dto0r88DQuaQizoxcQSxxx")  # Pass API key
xs, ys, elevation = terrain.fetch(bbox=bbox, quiet=False, coord="lonlat", zoom=10)
```

If download is not completed because of connection, retry it.