semvec/pypi-packages huggingface dataset:
pystegy 0.0.2
small steganography utility
Requires Python: >=3.6

# stegy             -           Release 0.0.2

a small steganography utility that inserts text messages into images


## lets start !


```python
stegy = stegyImage()
message = "a secret message"
filepath = stegy.encode(message )
    
```
this code return `filepath` with '**./data/result.pgn**' 
That randomly generated PNG-file contains your secret message.


you can decode hidden message in '**./data/result.pgn**' with :

```
decoded  = stegy.decode(filepath)
```
return `decoded` str containing : **a secret message**

## options

* dest :

  set the filepath of result by adding **dest** parameter to encode
    
  ```python
  filepath = stegy.encode(message , dest = './tmp/my.png' )
  ```
  create PNG file according your **dest** parameter
  return  `filepath` with '**./tmp/my.png**'


* src :

  give your own image file  by adding **src** parameter to encode
  ```python
  filepath = stegy.encode(message , src = './srcImage/boat.jpg' )
  ```
  create PNG file according your **dest** parameter
  return  `filepath` relative to a downscaled PNG-file build from your **src**


* topics :
  this parameter is inactive if  **scr** parameter is set.
  give a topic list for randomly choosen image ( str comma-separated)

  ```python
  filepath = stegy.encode(message , topics = 'cat,boat' )
  ```
  the generated PNG should represent either a 'cat' or a 'boat'
  
  
* key :
  a key for message encryption (override default one)
  
  __a png generated with *key* parameter can only be decoded with the same *key*.__
  ```python
  filepath = stegy.encode("lorem ipsum sic dolores amet..." , key = 'MySecretKey' )
  decoded = stegy.decode(filepath , key = 'MySecretKey' )
  ```
  



> Release Note v 0.0.2
> # Added 2 exceptions on 'decode' 
> - `NoMessage` exception : if given image have no message in it
> - `BadKey` exception : if a message is found but the decode key doesn't fit.
CompleteTheSquare 1.2
A Simple Python project to complete the square!
Requires Python: >=3.6

# CompleteTheSquare
---

A Simple Python project to complete the square!

## What is "Completing The Square"
Completing The Square is a method used in Mathematics to easily find the turning point of a quadratic on the graph.  
It can also be used to find the roots (where it crosses the x-axis (x-intercept or y=0)), but the quadratic formula is more popular for this.
[Read this to find out more!](https://www.mathsisfun.com/algebra/completing-square.html)

---

Current version: 1.2 --> Tweaks to code 
Python version: 3.8

---

# How to use!
1) Install the module!  
```
pip install CompleteTheSquare
```
2) Import the module!  
```
from CompleteTheSquare import CompleteTheSquare as cts
```
> I have imported it as `cts` to make it easier

3) Initialise your equation  
```py
eq = cts("x²+3x+2")
```
If you don't want to initialise an equation straight away, simply leave it as `""`  
4) Complete The Square!  
```py
eq.cts()
```
This will return the completed version (string)! Use `print()` to print it!  
5) Solve!  
```py
eq.solve()
```
This will return the solutions (list)! Use `print()` to print it!

If you want to initialise the equation outside, do:
```py
eq.equation = "2x²+6x+4"
```

## What do I need to input?
You must input `x` (lowercase).  
You don't need to add the power ², there just needs to be **something there**.  
x£ + 3x + 2 will give the same result as x² + 3x + 2 :P

# Contributing
You can open a PR request on [Github](https://github.com/Zeliktric/CompleteTheSquare) ~~like I know what that means~~.

Thanks :P