semvec/pypi-packages huggingface dataset:
impish 0.1.0
A small package to simplify interprocess communication.
Requires Python: >=3.7

# impish - Interprocess communication made easy!

impish (**i**nterprocess **m**essage **p**assing **i**s **s**imple enoug**h**) is a library to simplify interprocess communication. Inspired by MQTT it comes with two classes:
- ImpishBroker
- ImpishClient

that work with the publish/subscribe pattern. On Unix they use a Unix-domain socket to communicate. On Windows you´ll have to use a INET socket.
You can however also use an INET socket on Unix if you wish. Using a Inet socket should also allow IPC between separate machines. Unix-domain sockets however can only be used locally.

## Getting started

To learn how to use impish have a look at the provided examples [here](/examples).

## Tests

Complete tests will (probably) be provided in a later release.
payoffgraph-juttu 0.1.0
Get the most beautiful Payoff Chart using a single simple function
Requires Python: >=3.6
Keywords: payoff graph,options,opstra,sensibull

# Get the most beautiful Payoff Chart using a single simple function


## Installation

- Make sure you have Python installed in your system.
- Run Following command in the CMD.
 ```
  pip install payoffgraph-juttu
  ```

## Usage

## Import get_payoff

```python
from payoffgraph_juttu import get_payoff
```

# The only function you need to get the payoff graph

```python
get_payoff(positions_list,x1,x2)
```
# To run the file use this command
```python
streamlit run my_file.py
```

This is the only function you need to plot the graph

# Parameters - positions_list, x1, x2

# 1. positions_list

```python
position1=[strike,option_type,transaction_type,option_premium,quantity]

position2=[strike,option_type,transaction_type,option_premium,quantity]

position3=[strike,option_type,transaction_type,option_premium,quantity]

positions_list=[position1,position2,position3]

```
position_list is the list of all positions


Parameters
----------

```python
strike : int, float
Option Strike 

option_type : in the form {"CE","PE"}

transaction_type : in the form {"B","S"}
B: Buy 
S: Sell

option_premium : int, float
Option price

quantity : int
Quantity
Eg: (Nifty : 1Lot = 50 quantity, BankNifty: 1Lot = 25 quantity )

```


# 2. x1, x2

&emsp; x1, x2 are the start and end points on the x-axis. (Option strike range)

&emsp; For eg: If you consider Nifty you can use [x1,x2] = [spotprice-3000,spotprice+3000]

![png](https://raw.githubusercontent.com/Juttu/ss/main/nifty.png)

Here the graph starts from 14700 and ends at 20700 on the x-axis.

# COMPLETE EXAMPLE

```python
position1=[15600.00,"CE","S",2210.2,100]
position2=[15600,"PE","S",5,50]
position3=[15200,"CE","B",2573,50]

positions_list=[position1,position2,position3]

x1= 14700
x2=27000

get_payoff(positions_list,x1,x2)
```
# Run using this command

```python
streamlit run my_file.py
```

![png](https://raw.githubusercontent.com/Juttu/ss/main/example.png)
csv2json.py 1.1
A utility to convert CSVs to JSON
Requires Python: >=3.7

# csv2json

A command-line utility that quickly and easily converts CSVs to JSON.

## Usage

You can install csv2json using PyPi and use it as follows:

```bash
$ pip install csv2json.py
$ cat <mycsv> | csv2json -p

# See --help for more information.
```

## Help

```bash
A utility to convert CSVs to JSON quickly and easily.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
  -o OUTPUT, --output OUTPUT
  -c INCLUDE_COLUMNS [INCLUDE_COLUMNS ...], --include-columns INCLUDE_COLUMNS [INCLUDE_COLUMNS ...]
  -x EXCLUDE_COLUMNS [EXCLUDE_COLUMNS ...], --exclude-columns EXCLUDE_COLUMNS [EXCLUDE_COLUMNS ...]
  -p, --pretty
  --indent INDENT
```

## Contributing

csv2json.py welcomes contributions. Please submit PRs & issues as needed. Just don't be a dick.