semvec/pypi-packages huggingface dataset:
dtppy 0.1.1
Cross-platform networking interfaces for Python.
Requires Python: >=3.7

# Data Transfer Protocol for Python

Cross-platform networking interfaces for Python.

## Data Transfer Protocol

The Data Transfer Protocol (DTP) is a larger project to make ergonomic network programming available in any language.
See the full project [here](https://wkhallen.com/dtp/).

## Installation

Install the package:

```sh
$ python -m pip install dtppy
```

## Creating a server

A server can be built using the `Server` implementation:

```python
from dtppy import Server


# Called when data is received from a client
def receive(client_id, data):
    # Send back the length of the string
    s.send(len(data), client_id)


# Called when a client connects
def connect(client_id):
    print(f"Client with ID {client_id} connected")


# Called when a client disconnects
def disconnect(client_id):
    print(f"Client with ID {client_id} disconnected")


# Create a server that receives strings and returns the length of each string
s = Server(on_receive=receive, on_connect=connect, on_disconnect=disconnect)
s.start("127.0.0.1", 29275)
```

## Creating a client

A client can be built using the `Client` implementation:

```python
from dtppy import Client

message = "Hello, server!"


# Called when data is received from the server
def receive(data):
    # Validate the response
    print(f"Received response from server: {data}")
    assert data == len(message)


# Called when the client is disconnected from the server
def disconnected():
    print("Unexpectedly disconnected from server")


# Create a client that sends a message to the server and receives the length of the message
c = Client(on_receive=receive, on_disconnected=disconnected)
# Send the message to the server
c.send(message)
```

## Security

Information security comes included. Every message sent over a network interface is encrypted with AES-256. Key
exchanges are performed using a 512-bit RSA key-pair.
textual-bee 1.4.0
A Spelling Bee game for your terminal!
Requires Python: >=3.9,<4.0

# textual-bee

![preview](https://raw.githubusercontent.com/torshepherd/textual-bee/main/preview.png)

Get it on PyPI:

```sh
pip install textual-bee
textual-bee
```

## How to play

Submit words that include the center letter and are at least 4 letters long.

- Press the shuffle button (spacebar) to shuffle the outer letters.
- Press CTRL-C to quit.
- Press CTRL-R to reset and choose a new set of letters.
- Press (tab) to view your already-found words.

## Scoring

Your grade is based on how many of the possible words you find:

| Words found | Grade      |
| ----------- | ---------- |
| 0-2%        | Beginner   |
| 2-5%        | Good Start |
| 5-8%        | Moving Up  |
| 8-15%       | Good       |
| 15-25%      | Solid      |
| 25-40%      | Nice       |
| 40-50%      | Great      |
| 50-70%      | Amazing    |
| 70-100%     | Genius     |
| 100%        | Queen Bee  |

### Notes:

The word list doesn't correspond exactly to Sam's, but it was the closest I could find (margin of error seemed to be about 10%). In general, this game allows more proper nouns and fewer esoteric words, but it varies depending on the setup.

_Inspired by https://github.com/ajeetdsouza/clidle_
aisexplorer 0.1.1
Wrapper to fetch data from marinetraffic
Requires Python: >=3.7,<4.0
Keywords: AIS,Vessel,Shiptracking,Shiplocation,Location,Proxy,marinetraffic

# AISExplorer  

![PyPI](https://img.shields.io/pypi/v/AISExplorer)
![PyPI - Downloads](https://img.shields.io/pypi/dm/AISExplorer)
![example workflow](https://github.com/reyemb/AISExplorer/actions/workflows/python-package.yml/badge.svg?style=for-the-badge)

AISExplorer can be used to locate vessels or to scrape all vessel in an specific AREA.
Also free proxies can be used for scraping. Proxies will be scraped from [sslproxies](https://www.sslproxies.org/), tested and used. Also Fallback are implemented

## Installation

``` cmd
pip install aisexplorer
```

## Usage

### Find vessel by MMIS

```python
from aisexplorer.AIS import AIS

AIS().get_location(211281610)
```

### Find vessels in Area

**maximum 500 vessels**

```python
from aisexplorer.AIS import AIS

AIS(return_df= True).get_area_data("EMED")
```

Output is limited to 500 rows.
[Areas](https://help.marinetraffic.com/hc/en-us/articles/214556408-Areas-of-the-World-How-does-MarineTraffic-segment-them-) can be found here

### Get Table via URL

```python
from aisexplorer.AIS import AIS

AIS(return_df = True).get_data_by_url("https://www.marinetraffic.com/en/data/?asset_type=vessels&columns=time_of_latest_position:desc,flag,shipname,photo,recognized_next_port,reported_eta,reported_destination,current_port,imo,ship_type,show_on_live_map,area,lat_of_latest_position,lon_of_latest_position,speed,length,width&area_in|in|West%20Mediterranean,East%20Mediterranean|area_in=WMED,EMED&time_of_latest_position_between|gte|time_of_latest_position_between=60,NaN")
```

### Use Proxies

```python
from aisexplorer.AIS import AIS

AIS(return_df = True, Proxy = True).get_data_by_url("https://www.marinetraffic.com/en/data/?asset_type=vessels&columns=time_of_latest_position:desc,flag,shipname,photo,recognized_next_port,reported_eta,reported_destination,current_port,imo,ship_type,show_on_live_map,area,lat_of_latest_position,lon_of_latest_position,speed,length,width&area_in|in|West%20Mediterranean,East%20Mediterranean|area_in=WMED,EMED&time_of_latest_position_between|gte|time_of_latest_position_between=60,NaN")

```

### Get Data for user created fleets

```python
from aisexplorer.AIS import AIS

AIS(return_df = True, Proxy = True).get_vessels_in_all_fleets()

```

## Next Steps

- Add more potential proxy lists
- Find a way to change the number of retrys
- Reset new filters

## Changelog

### 2023-1-21

- Added logged in functions

### 2021-12-10

- Added Fallback if proxy has died
- Added get data by url
- Added Check if requests was filtered by cloudflare

### 2021-12-5

- Added Filters early stage
- Added Retry Options
- Added some new exceptions

### 2021-11-27

- Added Proxy Option
block-scopes 0.2.3
Block scopes in Python? Whaaaaaat?!
Requires Python: >=3.8
Keywords: cursed,hack,memory,scoping,variables

# 🩺 `block-scopes`
_Block scoping in Python!_

[![PyPI - Version](https://img.shields.io/pypi/v/block-scopes.svg)](https://pypi.org/project/block-scopes)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/block-scopes.svg)](https://pypi.org/project/block-scopes)

-----

**Table of Contents**

- [Usage](#usage)
- [Installation](#installation)
- [License](#license)

## Usage

```python
from scopes import scope

before = "I'll be kept!"

with scope("keep_me", "keep_me_too"):
    keep_me = "Keep me!"
    lose_me = "Not me!"

    keep_me_too = "Also... me!"

assert "before" in locals()
assert "keep_me" in locals()
assert "keep_me_too" in locals()

assert "lose_me" not in locals()
```

## Installation

```console
pip install block-scopes
```

## License

`block-scopes` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
module-hygiene 0.3.4
Keep your Python modules (and packages, and any other namespaces) clean and tidy!
Requires Python: >=3.8
Keywords: hygiene,module,namespace

# Module Hygiene
_Simple tools to help with Python namespace hygiene!_


## Description

This is an opinionated project! I prefer Python modules to only 
include what's necessary for users. If I'm in an IDE and type
`from module import <TAB>`, I want only API-level elements to 
be available! Many Python projects use a leading underscore to
specify _private_-like objects and modules. Still, it's sometimes
nice to keep things simple without multiple `_module` definitions
in a package.

This package is my solution! It currently provides a single function,
`cleanup`, which returns code to delete all `locals` which are not 
in a provided "export list".

## Usage

See the example usage below. Note that we need to import `T` to add
a proper typed signature for the function `square`. Unfortunately,
this means that `T` is also available to anyone who imports 
this module. 

By default, `cleanup` assumes 
the name of the module's export list is `'__export__'`. If you 
want to choose a different export list name, pass that name as a 
`str` to cleanup!

```python
"""module.py

A python module which exports a single function, `square`.
"""

from hygiene import cleanup
from typing  import T 

__export__ = [
    "square",
]

def square(x: T) -> T:
    """Returns the square of x!"""
    return x ** 2

if __name__ != "__main__":
    cleanup()
```

This `cleanup` approach will likely change how you write Python modules.
If you need a Python package throughout your module, like `numpy`, 
you likely `import numpy as np` at the top of your module, and use `np`
in various functions throughout the module. If you `cleanup` at the end of 
the module, your code will break on execution because `np` will no longer 
exist! 

If you choose to use `cleanup`, then you will need to `import` modules 
**at the function level**. Personally, I like this better anyways! Every 
dependency is right next to where it's used. One major downside of this 
approach is you need to parse your source code for `import` statements 
to track all dependencies. 

```python
"""another.py

Another module which exports a single function, `abssqrt`!
"""

from hygiene import cleanup
from typing  import T

# Don't do this!
# from numpy import abs, sqrt

__export_list__ = [
    "abssqrt",
]

def abssqrt(x: T) -> T:
    """Returns the square root of the absolute value of `x`!"""
    from numpy import abs, sqrt
    return sqrt(abs(x))

if __name__ != "__main__":
    cleanup(export = __export_list__)
```
Topsis-Vyom-102053010 0.0.1
Topsis
Keywords: python,topsis



# Topsis Python Implementation

*for*: Assignment 1(UCS654) submitted by: Vyom Kapur; Roll number: 102053010; Group: 3COE18

Topsis is the Technique for Order of Preference by Similarity to Ideal Solution, is used for dealing with Multiple Criteria Decision Making (MCDM) problems.


## Installation

Install Topsis with pip as: 

```bash
  pip install topsis-vyom-10253010
```

## Usage/Examples
Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-)

```bash
  topsis sample.csv "1,1,1,1" "+,-,+,+"
```


## License

[MIT](https://choosealicense.com/licenses/mit/)