semvec/pypi-packages huggingface dataset:
latticeadaptor 0.3.23
<Enter a one-sentence description of this project here.>
License: MIT
Requires Python: >=3.8,<4.0
Keywords: packaging,poetry

==============
latticeadaptor
==============

.. image:: https://readthedocs.org/projects/latticeadaptor/badge/
    :alt: Documentation Status
    :scale: 100%
    :target: http://latticeadaptor.readthedocs.io


.. image:: https://mybinder.org/badge_logo.svg
 :target: https://mybinder.org/v2/gh/tomerten/latticeadaptor/main?filepath=docs%2Fnotebook%2FTutorial.ipynb


This package is used to convert a table of accelerator lattice elements and their arguments 
to various accelerator lattice formats. Currently covered are:

- MadX (Sequence and Line format)
- Elegant
- Tracy

* Free software: MIT license
* Documentation: https://latticeadaptor.readthedocs.io.


Features
--------

* Fast lattice comparison by plotting element locations against eachother.
* Fast settings compare by comparing magnet settings.
* Quick twiss plotting.
* Quick lattice element plotting.
* Conversion from table to standard formats.

Tutorial on Binder
------------------

https://mybinder.org/v2/gh/tomerten/latticeadaptor/main?filepath=docs%2Fnotebook%2FTutorial.ipynb
cli-maker 1.0.0
This is a python framework to create clean and modern Command Line Interface . For more information take a look at the documentation. (https://github.com/DevXurde/cli_maker)
License: MIT
Keywords: python,cli,rich-text,interface

CLI Maker
==========

This is a python framework which can help developers create modern interface for cli in python .
Visit Documentation at https://github.com/DevXurde/cli_maker.

Change Log
==========

1.0.0 (26/07/2021)
-------------------
- Alpha Release
spartan-py 0.2.10
Library for spartan protocol
License: MIT
Requires Python: >=3.7,<4.0

# spartan-py

Basic spartan protocol implementation as a python library.

```python
import spartan

res = spartan.get("spartan://mozz.us/echo", "hi")
while True:
    buf = res.read()
    if not buf:
        break
    sys.stdout.buffer.write(buf)
res.close()
```

Try it in the REPL:
```python
>>> import spartan
>>> req = spartan.Request("spartan.mozz.us")
>>> req
Request(host='spartan.mozz.us', port=300, path='/') data-length=0
>>> print(req)
'spartan.mozz.us / 0'
>>> res = req.send()
>>> res
2 text/gemini
>>> res.read()
[...]
>>> res.close()
```

## install

```
pip3 install spartan-py
```

## API

- `Request(host: str, port: int = 300, path: str = "/", data: str = "")`
  - `send() -> Response` - send the request
  - `__repr__()`
  - `__str__()`
- `Response(socket)`
  - `read()`
  - `close()` - close the socket
  - `.status` - status code
  - `.meta` - meta string for the status
  - `.file` - socket file
  - `.request` - the Request object for this response
  - `__repr__()`
  - `__str__()`
- `Status` - statuses
  - `success = 2`
  - `redirect = 3`
  - `client_error = 4`
  - `server_error = 5`
- `get(url: str, data: str = "") -> Response` - if the query string part in the URL exists, data will be ignored.

## TODO
- [ ] invalid url handling
- [ ] util functions like parsing meta and getting status type
- [ ] basic CLI usage
- [ ] async methods