semvec/pypi-packages huggingface dataset:
snlo-helper 0.4.0
An autoclicker to automatically configure and read SNLO.
Requires Python: >=3.9
Keywords: SNLO, nonlinear optics, simulation

# SNLO-Helper

[![pypi release](https://img.shields.io/pypi/v/snlo-helper.svg)](https://pypi.org/project/snlo-helper/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11125163.svg)](https://doi.org/10.5281/zenodo.11125163)
[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)

SNLO-Helper helps to use [SNLO](https://as-photonics.com/products/snlo/) software for simulation of nonlinear optical processes in crystals.

An autoclicker clicks different buttons and fills fields in order to automate SNLO simulations.
Afterwards, it can retrieve the results and return them as a dictionary.

Attention:
- The script does use your mouse and keyboard, so you should not interact with the computer at the same time.
- The script uses predefined positions of the windows, so **do not move the windows**.
- The autoclicker can be interrupted by moving the mouse into the top left corner of the screen.


Currently it supports the following functions (feel free to add more):
- Ref. Ind.
- Qmix
- 2D-mix-LP
- 2D-mix-SP
- PW-OPO-BB
- 2D-cav-LP
- Focus


## Installation

Install it executing `pip install -e .` in this folder or via `pip install snlo-helper` to download it in the background and install it.


## Usage

### Quick Start

1. Start SNLO on your computer
2. Import `snlohelper.main_window.MainWindow` as a starting point.
3. Create an instande `mw = MainWindow`
4. Open the desired function: `ri = mw.open_function(Functions.REF_INDEX)`
5. Execute it `no, ne = ri.refractive_indices(Wavelength=1234)`

Here is a small snippet how to do a 2D mix of long pulses:
```
from snlohelper.main_window import MainWindow

mw = MainWindow()
mix = mw.open_two_d_mix_lp()
mix.configure({"Wavelengths (nm)": [1064.5, None, None]})
result = mix.run_and_read()
print(result)
```

For more examples see the `examples` folder.


### General usage

* The `main_window.MainWindow` class manages the main window.
* For several functions exists a module containing a class, which in turn allows to configure the function, to run the calculation, and to extract the result.
  1. You start that class, for example `mix = two_d_mix_lp.TwoDMixLp()` or `mix = MainWindow().open_function("2D-Mix-LP")`.
  2. You can configure it giving a configuration dictionary (the keys correspond to the names) with `mix.configure({"Wavelengths": [1064, None, None]})`. If a value is `None`, it won't be changed.
  3. You can run it with `mix.run()`
  4. With `results = mix.read_results()` you can extract the resulting text.
  5. With `result_dict = mix.interpret_results(results)` you get a dictionary of the result data
  6. There are convenience methods like `mix.run_and_read` which runs and returns the dictionary, or even `mix.configure_run_read`, which does all of above steps in one.


## Contribution

You are welcome to contribute to this library.
Just open an issue for suggestions or bug reports and open a pull request for code contributions.
jericho 3.2.1
A python interface to text-based adventure games.
Requires Python: >=3.9

<p align="center">
    <br>
    <img src="https://raw.githubusercontent.com/microsoft/jericho/master/docs/source/imgs/jericho.png" width="300"/>
    <br>
<p>

<p align="center">
  <a href='https://jericho-py.readthedocs.io/en/latest/?badge=latest'>
    <img src='https://readthedocs.org/projects/jericho-py/badge/?version=latest' alt='Documentation Status' />
  </a>
  <a href='https://travis-ci.org/microsoft/jericho'>
    <img src='https://travis-ci.org/microsoft/jericho.svg?branch=master' alt='Build Status' />
  </a>
  <a href='https://badge.fury.io/py/jericho'>
    <img src='https://badge.fury.io/py/jericho.svg' alt='PyPI version' />
  </a>
<p>

<p align="center">
  A lightweight python-based interface connecting learning agents with interactive fiction games.
<p>

<br>

## Requirements
***Linux***, ***Python 3.9+***, ***Spacy***, and basic build tools like ***gcc***,***make*** & ***curl***.

## Install
```bash
conda create -n jericho python=3
conda activate jericho

python -m pip install jericho
python -m spacy download en_core_web_sm
```

## Documentation
- [Quickstart](https://jericho-py.readthedocs.io/en/latest/tutorial_quick.html)
- [Frotz Environment](https://jericho-py.readthedocs.io/en/latest/frotz_env.html)
- [Object Tree](https://jericho-py.readthedocs.io/en/latest/object_tree.html)
- [Game Dictionary](https://jericho-py.readthedocs.io/en/latest/dictionary.html)
- [Template Action Generator](https://jericho-py.readthedocs.io/en/latest/template_action_generator.html)
- [Utilities](https://jericho-py.readthedocs.io/en/latest/util.html)
- [Defines](https://jericho-py.readthedocs.io/en/latest/defines.html)

## Agents

- [Reading Comprehension Deep Q-Network (RCDQN)](https://github.com/XiaoxiaoGuo/rcdqn)
- [Contextual Action Language Model (CALM)](https://github.com/princeton-nlp/calm-textgame)
- [Q*BERT](https://github.com/rajammanabrolu/Q-BERT)
- [Knowledge Graph Advantage Actor Critic (KG-A2C)](https://github.com/rajammanabrolu/KG-A2C)
- [Template-DQN and DRRN](https://github.com/microsoft/tdqn)

## Citing Jericho
If Jericho is used in your research, please cite the following:
```
@article{hausknecht19,
  title={Interactive Fiction Games: A Colossal Adventure},
  author={Hausknecht, Matthew and Ammanabrolu, Prithviraj and C\^ot\'{e} Marc-Alexandre and Yuan Xingdi},
  journal={CoRR},
  year={2019},
  url={http://arxiv.org/abs/1909.05398},
  volume={abs/1909.05398}
}
```

## Contributing

This project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
SPYGE 0.0.4
A very simple graphics library based on tkinter.
Requires Python: >=3.6

# Simplified Python Graphics Extension(SPYGE)

A very simple graphics pip library based on tkinter.

**---Documentation---**
Nothing for now

**---Versions---**
0.0.1 -> Just uploading the package.
0.0.2 -> Add a test function and tested packages
0.0.3 -> Moved it to tkinter
0.0.4 -> Changed back to pygame
consulta-cep 0.2.0
Biblioteca para consulta de endereços a partir de CEP usando serviços variados.
Requires Python: >=3.6

# Consulta CEP

Biblioteca para consulta de endereços a partir de CEP usando serviços variados.
Veja no PyPI: https://pypi.org/project/consulta-cep/

## Instalação

Você pode instalar a biblioteca via pip:

```bash
pip install consulta-cep
```

## Uso em programas

```bash
from consulta_cep import consulta_cep
endereco = consulta_cep('05010-000')
print(endereco)
Endereco(servico='BrasilAPI', estado='SP', cidade='São Paulo', bairro='Perdizes', logradouro='Rua Caiubi')
```

## Uso utilitário

Você pode executar como utilitário:

```bash
python -m consulta_cep 01001-000

{"servico": "BrasilAPI", "estado": "SP", "cidade": "S\u00e3o Paulo", "bairro": "S\u00e9", "logradouro": "Pra\u00e7a da S\u00e9"}
```