semvec/pypi-packages huggingface dataset:
MAGICDownloader 0.1.2
Download MAGIC data

# MAGIC Downloader
Download MAGIC data.

## Installation
```
pip install git+https://github.com/noahhdf/magic-downloader.git
```

## Usage

### Download data

Download data files from http://data.magic.pic.es/Data/:
```python
from MAGICDownloader import MAGICDownloader

base = "http://data.magic.pic.es/Data/Star/"
urls = [
    base + "v1/CrabNebula/2019_01_12/",
    base + "v1/CrabNebula/2019_01_13/",
]

downloader = MAGICDownloader("<user>", "<password>")
downloader.download_files(urls, "<output-directory>")
```

If a file is already downloaded, this file will be skipped.

### Ignore some files

It's possible to ignore some files and not download them, based on
`string`-content:
```python
downloader.download_files(urls, "<output-directory>", ignore_pattern="ignore")
```
skips files where
```python
"ignore" in filename
```
evaluates to `True`.


### Reading delayed files

Delayed files are labeled with a truck: .
These files will be skipped, if after 5 seconds the download does not start.
Just try to download again later.

If you want to wait longer and don't skip:
```python
downloader.download_files(urls, "<output-directory>", skip=False)
```
desman 1.0.5
Console HTTP API tool

# desman
Desman is console HTTP API requests tool. Desman uses .yml files to save request information. You can use enviroment files wich are also .yml files, to substitute variables to request.

## Installation
### Pip
```sh
pip install desman
```

### Docker on Unix-like
Desman can be installed as .sh script running docker image:
```
sudo curl -L --fail https://raw.githubusercontent.com/kirillsulim/desman/master/scripts/run/run.sh -o /usr/local/bin/desman
sudo chmod +x /usr/local/bin/desman
```

Default tag in script is latest. If you want to fix specific version, change corresponding variable in script.

### Docken on Windows
Desman can be installed as .ps1 script running docker image. 
[Download script](https://raw.githubusercontent.com/kirillsulim/desman/master/scripts/run/run.ps1) and set required permissions.
Default tag in script is latest. If you want to fix specific version, change corresponding variable in script.

## How to use
### Simple request
Create .yml file with request description:
```yml
method: get
url: http://host.com/
```

then pass file path to desman
```sh
desman path/to/file.yml
```

and desman prints the body of response to console.

### Request with parameters
Query parameters can be passed in url
```yml
method: get
url: http://host.com/?param=value
```
or be passed separately
```yml
method: get
url: http://host.com/
params:
  param: value
```

### Headers
Headers can be passed in headers field
```yml
method: get
url: http://host.com/
headers:
  Authorization: Bearer some-auth-token
params:
  param: value
```

### Body
Body content can be passed in body field in request file
```yml
method: post
url: http://host.com/post
headers:
  Authorization: Bearer some-auth-token
body: |
  {
      "stringField": "JSON value",
      "nestedObject": {
          "nestedField": [1, 2, 3]
      }
  }
```

## Output parameters
The output of HTTP response is controlled by these optional paramters:
- `-s` print status of response
- `-H` print heafers of response
- `-b` print body of response

If none of these parameters are passed desman prints only body of response.

## Using environments
All request files are [Jinja2](http://jinja.pocoo.org/) templates.

```yml
# request.yml
method: post
url: http://{{server.host}}:{{server.port}}/post
headers:
  Authorization: Bearer {{my-token}}
body: |
  {
      "stringField": "JSON value",
      "nestedObject": {
          "nestedField": [1, 2, 3]
      }
  }
```

Variables are substituted from enviroment .yml files

```yml
# env.yml
server:
  host: host.com
  port: 8080
my-token: "some-auth-token"
```

which are passed in optional parameter `-e`

```sh
desman -e env.yml request.yml
```

You can use many enviroment files. If they have similar fields desman will use the last occurence of value.

With many enviroment files

```yml
# env.yml
server:
  host: host.com
  port: 8080
my-token: "some-auth-token"
```

```yml
# new-token.yml
my-token: "new-token"
```

if both passed as

```sh
desman -e env.yml -e new-token.yml request.yml
```

request will be performed with `Authorization: Bearer new-token` header.
fancybox 1.0.0
Print beautiful message boxes on command line

# FancyBox

Fancy Box is a Python module that allows you to print beautiful message boxes on command line. There are predefined message boxes, you can use or you can create you own custom box.


## Installation
```
pip3 install fancybox
```

## Uses
* Simple messages
```
import fancybox as fb

fb.success("Test Successful")
fb.error("IOError occured")
fb.info("Setup Completed")
fb.warning("name is NULL")
```

![Output Screenshot](https://github.com/shivampip/FirstPyPl/blob/master/imgs/fancybox_messages.png)

* Box with title and description

![Table Screenshot](https://github.com/shivampip/FirstPyPl/blob/master/imgs/fancybox_table.png)


* Create customize box

```
from fancybox import Box
box= Box()
box.bgcolor= 2
box.fgcolor= 15
box.border= 11
box.makebox("NAMES")
box.addbox("Python")
box.addbox("Linux")
box.addbox("Windows")
```

![Custom box](https://github.com/shivampip/FirstPyPl/blob/master/imgs/custom_box.png)


**Happy Programming**