semvec/pypi-packages huggingface dataset:
endaq-cloud 1.1.0
The cloud subpackage for endaq-python
License: MIT
Keywords: ebml binary ide mide endaq

# endaq-cloud

The `cloud` subpackage for `endaq-python`

This package houses tools and functions to make both interacting with the enDAQ Cloud API and the `enDAQ Cloud <https://cloud.endaq.com>`_ itself easier.

## Tools:

### API Wrapper:

The API Wrapper provides a simple command-line interface for accessing basic file and device information from the enDAQ Cloud API. Output of all commands except `account` and `attributes` are in `csv` files in the `output` folder.

To access the cloud, this tool requires an API key associated with a user's enDAQ Cloud account, which can be provided in two ways:

* (recommended) add to the `endaq.cloud` project directory a `.env` file, formatted like so:

		API_KEY=<Your Key>

* pass in an API key through the command line using the `--key` option

#### warning
For security reasons, it is generally discouraged to make an authentication key visible on-screen or accessible through the clipboard, such as when using the `--key` option; we provide the `key` option solely as a convenience.

Runs on Python 3.6 and higher

#### Commands

- files               Outputs file information for selected number of files and attributes
- file-id             Outputs file information for file with specified ID to output file
- devices             Ouputs device information for selected number of files
- device-id           Output device information for device with specified ID to output file
- account             Prints out account information
- attributes          Adds an attribute to a specified file
- set-env             Creates a .env file with passed in API key *NOT SECURE*

#### Usages

Flag | Description 
---|---
-h                  | Command Line Help
--id, -i            | File or Device ID
--limit, -l         | File or Device output limit; Max 100 default 50
--key, -k           | API Key
--attributes, -a    | Attributes to be outputted; options = all or att1,att2...; default is none
--name, -n          | Attribute Name
--type, -t          | Attribute Type; options = int, float, string, boolean
--value, -v         | Attribute Value
--verbose, -V       | Prints out URL API calls


- endaq-cloud set-env -k <API_KEY>
- endaq-cloud download -i <FILE_ID> -o <OUTPUT_FOLDER>
- endaq-cloud files -a <ATTRIBUTES_TO_GET> -l <FILE_OR_DEVICE_OUTPUT_LIMIT>
- endaq-cloud file-id -i **# additional argument needed**
- endaq-cloud devices -l <FILE_OR_DEVICE_OUTPUT_LIMIT>
- endaq-cloud device-id -i **# additional argument needed**
- endaq-cloud account
- endaq-cloud attribute -n <ATTRIBUTE_NAME> -t <ATTRIBUTE_TYPE> -v <ATTRIBUTE_VALUE> -i **# additional arguments needed**



### Utilities

Convienience functions for interacting with the cloud API and the enDAQ custom cloud report generation.
python-repo-structure 0.1.1
Show how to structure small Python package using CI (Codecov) and Poetry to upload to PyPi.
License: MIT
Requires Python: >=3.8,<4.0

# python-repo-structure

This repository shows how to structure small Python project using CI (Codecov) and Poetry to upload to PyPi.

____

## Badges

[![codecov](https://codecov.io/gh/dimitryzub/python-repo-structure/branch/main/graph/badge.svg?token=SW9AAPJFVJ)](https://codecov.io/gh/dimitryzub/python-repo-structure)
![CI Github Actions](https://github.com/dimitryzub/python-repo-structure/actions/workflows/ci.yml/badge.svg)

Find [other badges](https://shields.io/) you want to see in your repository.

# Usage

```python
from package_name.some_file import ModernWarfare

print(ModernWarfare().call_of_duty())
# "Press F to pay respects"
```

Testing on replit.com

![img.png](images/img.png)

![img_2.png](images/img_2.png)

![img_1.png](images/img_1.png)

# Install

```
pip install python-repo-structure
```

```
git clone https://github.com/dimitryzub/python-repo-structure.git
```



## Upload to Pypi

When running `poetry publish` you will be prompted to add your PyPi username and password. 
You won't the password while typing, it's intentional.

```
1. $ poetry build --format wheel
2. $ poetry publish
```

Building package:

```
$ poetry build --format wheel
Building python-repo-structure (0.1.0)
  - Building wheel
  - Built python_repo_structure-0.1.0-py3-none-any.whl
```

Once start uploading process, you'll see something like this in the terminal:
```
$ poetry publish

Username: dimitryzub
Password:
Publishing python-repo-structure (0.1.0) to PyPI
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 0%
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 100%
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 100%

```