semvec/pypi-packages huggingface dataset:
jupyter_notifications 1.0.3
Jupyterlab browser notification magic commands
Requires Python: >=3.5

# Jupyter Notifications
Notebook Cell Completion Browser Notifications for Jupyter Notebook and Lab. 

<img alt="Notification Example" src="static/images/notification.png" width="500">

You can find an example notebook in the `examples` folder.

![Notify Example](static/images/notify_example.png)

Cell magic command for notification after cell execution completion.
```
%%notify 
```

Cell magic command with custom message.
```
%%notify -m 'hello world!'
```
Or
```
%%notify --message 'hello world!' 
```


## Installation

Install the package via pip.
```
pip install jupyter_notifications
```
Add the extension in the ipython kernel config's `c.InteractiveShellApp.extensions` section. 
```
~/.ipython/profile_default/ipython_kernel_config.py
...
c.InteractiveShellApp.extensions = [ "jupyter_notifications" ]
```
Then spin up jupyter notebook or lab with 
```
$ jupyter notebook
$ jupyter lab
``` 

## Development

This extension was tested with the Google Chrome browser.
This should work with any browser that has [access to the Notifications API](https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#browser_compatibility). 

To build the extension locally, run the following command.
```
$ flit install
```
jibber-jabber 0.0.9
Simple product name generator
Requires Python: >=3.6

# Gibberish Product Generator 

Simple fake product names generator 

1. How to use it:
    ```python
    from jibberjabber import jibber
    
    # includes product category
    jibber(category=True)
    ('Yellow Squash Aback', ' VEGETABLE')
    
    # product only
    jibber()    
    'Yello Squash Aback'
    ```
finder-string 0.1.1
Search for a string in all possible files in the directory.
Requires Python: >3.6

# Finder-in-files
**This script searches for a specific string across all files in the directory you specified**
## Supported file formats for searching
- txt
- log
- html
- css
- cpp
- h
- js
- py
- c
### Special formats
- doc
- docx
- otd
- rtf  (May not work on Windows)
- pdf  (May not work on Windows)

## Documentation

### Installation

```
pip install finder-string==0.1.1
```

### Import
To import a module into your code use:
```
import finder_in_files as finder
```
### Usage
To find a line in files in a directory, use:
```
finder.search(catalog_name, find_str, settings_files=DEFAULT_SETTINGS_FILES)
```
`catalog_name` - The name of the directory where the search should be performed.

`find_str` - Search string.

`settings_files` - Setting file extensions (enable / disable).

`DEFAULT_SETTINGS_FILES` -
 
 ```
DEFAULT_SETTINGS_FILES = {
        'txt': True,
        'log': True,
        'html': True,
        'css': True,
        'cpp': True,
        'h': True,
        'py': True,
        'c': True,
        'doc': True,
        'docx': True,
        'rtf': True,
        'odt': True,
        'pdf': True
}
```
The search is performed on the lines of the file. If `find_str` is more than 89% similar to a line in the file, the line is considered found.

The `search` function returns a tuple (name_file, numbers_str numbers_repeat).

`name_file` - The path to the file where `find_str` was found.

`numbers_str` - Returned as a list that consists of the lines where `find_str` was found.

`numbers_repeat` - The number of times to repeat `find_str` in the file. Returned in int format.

## Example
An example where all of this is used together.

```
try:
                results = finder_in_files.search(catalog_name, find_str, self.settings_files)
                if not results:  # If nothing was found, then
                    print('\nThe text was not found. ;(\n')
                else:
                    for name_file, numbers_str, numbers_repeat in results:  # We unpack the tuple using for.
                        print(f"\nPath to the file: {name_file}")
                        print(f'Content lines: {str(numbers_str).replace(",", " |")}')
                        print(f"String repetitions: {numbers_repeat}\n")
            except FileNotFoundError:  # print('\nError! You entered an invalid file path.')  
            # An exception if the path (catalog_name) was not specified correctly.
```

More examples on [GitHub](https://github.com/vander00/Finder-in-files).
FileTransfer-LQR471814 0.1.2
A module that makes File Transfer a bit easier.
Requires Python: >=3.6

# FileTransfer

## A python module that makes file transfer slightly easier

## Syntax

`FileTransfer.send(filepath="", socket=s)` : Returns `void`

`FileTransfer.receive(socket=s)` : Returns `bytes`

## Usage

### **Sending**

```python
import socket
import FileTransfer as ft

# Setup socket for use in file transfer
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect("ip.address", port)

ft.send(filepath, s) # Specify filepath as str and use client socket object
```

### **Receiving**

```python
import socket
import FileTransfer as ft

# Setup simple socket receive
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("0.0.0.0", port))
s.listen(1)
conn, addr = s.accept()

result = ft.receive(conn) # Invoke receive function
# Result is a tuple with the file contents being index 0 and filename being index 1
print("Filename: ", result[1], "File Contents: ", result[0])
```

## Protocol (TCP)

| Filename Length  | Filename | Payload Length (File Contents Length) | Payload (File Contents) |
| --- | --- | --- | --- |
| `4 Bytes` | `Filename encoded (utf8)` | `4 bytes` | `Payload bytes` |
sensors-reader-proto 0.0.4
Prototype pour l'acquisition des données des instruments du parc solaire 3IT
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

# Projet prototype pour la lecture des données de la station Razon+

![Python Logo](https://www.usherbrooke.ca/3it/fileadmin/sites/3it/images/VISUELS3IT_2020/3IT_VH-C.png "Sample inline image")
[Le code source est disponible ici][src].

Projet dans le cadre du prototypage pour la lecture des données de :
* La station Razon+
* Le système SolarEdge

Pour publier les scripts de ce projet :
 * Mettre à jour la version dans setup.py
 * Exécuter les commandes suivantes à la racine du projet : 
    * `python3 setup.py sdist bdist_wheel`
    * `twine upload dist/*`

Pour installer les scripts de ce projet :
 * Installer Python 3.8
 * Exécuter les commandes suivantes :
 * python3 -m pip  install sensors-reader-proto

Pour exécuter les différents scripts :
 * ~/.local/bin/razon_plus_extractor

[packaging guide]: https://packaging.python.org
[package guide #2]: https://www.geeksforgeeks.org/command-line-scripts-python-packaging/
[distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
[src]: https://gitlab.com/3IT-helios/sensors-reader-proto
[rst]: http://docutils.sourceforge.net/rst.html
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
[License]: https://choosealicense.com/licenses/mit/