semvec/pypi-packages huggingface dataset:
smok 0.21.0
Library for writing services that behave as SMOK devices
Requires Python: !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*
Keywords: iot,client,smok,upload,scada

# SMOK

[![PyPI](https://img.shields.io/pypi/pyversions/smok.svg)](https://pypi.python.org/pypi/smok)
[![PyPI version](https://badge.fury.io/py/smok.svg)](https://badge.fury.io/py/smok)
[![PyPI](https://img.shields.io/pypi/implementation/smok.svg)](https://pypi.python.org/pypi/smok)
[![Documentation Status](https://readthedocs.org/projects/smok-client/badge/?version=latest)](http://smok-client.readthedocs.io/en/latest/?badge=latest)
[![Maintainability](https://api.codeclimate.com/v1/badges/657b03d115f6e001633c/maintainability)](https://codeclimate.com/github/smok-serwis/smok-client/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/657b03d115f6e001633c/test_coverage)](https://codeclimate.com/github/smok-serwis/smok-client/test_coverage)
[![Wheel](https://img.shields.io/pypi/wheel/smok.svg)](https://pypi.org/project/smok/)
[![Build Status](https://travis-ci.com/smok-serwis/smok-client.svg)](https://travis-ci.com/smok-serwis/smok-client)
[![License](https://img.shields.io/pypi/l/smok)](https://github.com/smok-serwis/smok-client)

`smok` is a definitive library to write programs that behave as SMOK devices.
It is principally a consumer of [the SMOK API](https://api.smok.co/).

## Change log

For the change log, refer [here](https://smok-client.readthedocs.org/en/latest/changelog.html)
sellapp 1.0.4
Python SDK for sell.app
Requires Python: >=3.7
Keywords: sell.app,sellapp


# sellapp

A Python SDK made for [sell.app](https://sell.app) 


## Installation

```bash
  pip install sellapp
```
    
## Usage

### Basic usage
```python
import sellapp

api = sellapp.Api("Your api key")
blacklists = api.get_all_blacklists()
orders = api.get_all_orders()

print(blacklists)
print(orders)
```
CodeExecutor 1.2
Running code in a sandbox environment

# CodeExecutor utility!

## Introduction
The CodeExecutor is a utility for executing arbitrary Python code in a restricted environment. It allows you to specify a list of allowed libraries or functions that can be imported and used in the code being executed, and provides an easy way to execute code snippets or files in a controlled and isolated environment.

Installation
To install the CodeExecutor utility, you can use pip to install the package:

```
pip install CodeExecutor
```
## Usage
Here's an example of how you might use the CodeExecutor class:
```
from code_executor import CodeExecutor

# First, create an instance of the CodeExecutor class
executor = CodeExecutor()

# Optionally, add any allowed libraries or functions that you want to make available
# For example, to allow the use of the math and time.sleep functions:
executor.add_allowed_library('math', 'time.sleep')

# To execute some code, you can pass it as a string to the execute_code() method:
code = '''
import math

result = math.sqrt(16)
print(result)
'''
executor.execute_code(code)
# Output: 4.0

# You can also execute code in a separate thread by calling the execute_code_thread() method:
executor.execute_code_thread(code)

# To read code from a file, you can use the get_code() method:
code = executor.get_code()
executor.execute_code(code)
```
The `execute_code()` and `execute_code_thread()` methods both return a dictionary containing the environment in which the code was executed. This can be useful for inspecting the values of variables or functions defined in the code.
Note that the CodeExecutor includes a method that raises an ImportError if an attempt is made to import a library or module that is not in the list of allowed libraries. This helps to prevent malicious code from importing external libraries or accessing sensitive information.

## License
This project is licensed under the MIT License - see the LICENSE file for details.

## Contributing
We welcome contributions to the CodeExecutor utility! If you have an idea for a new feature or bug fix, please open an issue or pull request on GitHub.
writecode 0.1.3
Write code using OpenAI's Codex model
Requires Python: >=3.6

# writecode

writecode is a command-line tool that generates code from text prompts using OpenAI's Codex model. With writecode, you can quickly and easily generate code snippets in a variety of languages without having to write any code yourself.

## Installation

To install writecode, you will need to have Python 3 and pip installed on your system. Then, you can use pip to install the writecode package from PyPI:

```bash
pip install writecode
```

## Usage

The main function in writecode is `writecode.code`, which takes the following keywords:

- `prompt` (required): A string containing the text prompt with the instructions for Codex.
- `lang` (optional): The language to generate code in. The default is Python.
- `tokens` (optional): An integer specifying the maximum number of output tokens.
- `best_of` (optional): An integer specifying the number of completions to generate server-side and return the "best" (the one with the highest log probability per token). The default is 3.
- `save` (optional): The name of the output file to save the code snippet to.

Here's an example of how to use the `code` function to generate a Python code snippet and save it to a file:

```python
from writecode import code

prompt = "Write a function that takes a list of integers and returns the sum of the even numbers in the list."
code(prompt, lang='python', tokens=1000, save='output.py')
```

This will generate a Python code snippet, followed by an explanation, with up to 1000 tokens and save it to a file called `output.py`.

Example output:
```python
def sum_even(list):
    sum = 0
    for i in list:
        if i % 2 == 0:
            sum += i
    return sum

print(sum_even([1,2,3,4,5,6,7,8,9,10]))

# The function takes a list of integers and returns the sum of the even numbers in the list.
# The function first creates a variable called sum and sets it equal to 0.
# The function then loops through the list and checks if the number is even.
# If the number is even, the function adds it to the sum variable.
# The function then returns the sum variable.
# The function is then called and the list is passed as an argument.
# The function returns the sum of the even numbers in the list.
```
## Supported Languages

writecode currently supports code generation for the following languages:

- Python
- HTML
- C++
- Java
- JavaScript
- C#
- Go
- Ruby
- Swift
- PHP

This list is not exhaustive and may be updated in the future as the Codex model continues to evolve.

## Limitations

writecode is powered by OpenAI's Codex model, which is a powerful tool for generating code from text prompts. However, it is not perfect and may not always produce accurate or complete code snippets. It is important to carefully review the generated code before using it in any production systems.