semvec/pypi-packages huggingface dataset:
ShortestPath 0.1
To measure the shortest distance of any nodes or any particular points, we can use this package. By using this package, we will get the shortest path and also the distance.
License: MIT
Requires Python: >=3
Keywords: Shortest Path,Dijkstra Algorithm,Graph,Shortest Distance,Shortest Route,Dijkstra_2D,Dijkstra_3D

# DijsktraAlgorithm

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

Dijkstra's algorithm is an algorithm for finding the shortest paths between nodes in a graph. It was conceived by computer scientist **Edsger W. Dijkstra** in 1956 and published three years later.
Here, I used his method in python to find the shortest path and also the distance.


# Using

```sh
'''First Import our module'''
from DijkstraAlgorithm import DijkstraAlgorithm

'''Initializing the Class Attributes'''
x = DijkstraAlgorithm()

'''Now pass the arguments through the following method'''
x.dijkstraWithPath(graph, source, destination)  #Here, this graph is about the distance between each nodes.

'''Lets define some methods'''
shortest_path = x.path()
distance = x.distance()
```

### Plugins

Few useful links:

| Plugin | README |
| ------ | ------ |
| 2D Model | https://github.com/MizanMustakim/Dijkstra-s-Shortest-Path-Algorithm/tree/main/Shortest%20Path%20in%202D%20model |
| 3D Model | https://github.com/MizanMustakim/Dijkstra-s-Shortest-Path-Algorithm/tree/main/Shortest%20Path%20in%203D%20model |



License
----

GNU General Public License v3 or later (GPLv3+)


**Free Software, Happy Coding!**
ephemeral-port-reserve 1.1.4
Bind to an ephemeral port, force it into the TIME_WAIT state, and unbind it.
License: MIT
Requires Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7

# `ephemeral-port-reserve`
Sometimes you need a networked program to bind to a port that can't be hard-coded.
Generally this is when you want to run several of them in parallel; if they all
bind to port 8080, only one of them can succeed.

The usual solution is the "port 0 trick". If you bind to port 0, your kernel will
find some arbitrary high-numbered port that's unused and bind to that. Afterward
you can query the actual port that was bound to if you need to use the port number
elsewhere. However, there are cases where the port 0 trick won't work. For example,
mysqld takes port 0 to mean "the port configured in my.cnf". Docker can bind your
containers to port 0, but uses its own implementation to find a free port which
races and fails in the face of parallelism.

`ephemeral-port-reserve` provides an implementation of the port 0 trick which
is reliable and race-free. You can use it like so:

```!bash
PORT="$(ephemeral-port-reserve)"
docker run -p 127.0.0.1:$PORT:5000 registry:2
```


`ephemeral-port-reserve` is a utility to bind to an ephemeral port, force it into
the `TIME_WAIT` state, and unbind it.

This means that further ephemeral port alloctions won't pick this "reserved" port,
but subprocesses can still bind to it explicitly, given that they use `SO_REUSEADDR`.
By default on linux you have a grace period of 60 seconds to reuse this port.
To check your own particular value:

```!bash
$ cat /proc/sys/net/ipv4/tcp_fin_timeout
60
```

**NOTE:** By default, the port returned is *specifically* for `localhost`, aka `127.0.0.1`.
If you bind instead to `0.0.0.0`, you may encounter a port conflict. If you need to
bind to a non-localhost IP, you can pass it as the first argument.
LanguageIdentifier 1.1.1
Language identifier based on an LSTM model
License: MIT
Keywords: Lid,LSTM,Language identifier,Language

*** Redistribution and use in source, with or without modifications, are permitted for academic purposes, provided that the proper acknowledgements are done.

##Example code
```
from LanguageIdentifier import predict
from LanguageIdentifier import rank

print(predict("Det her er dansk"))
print(rank("This is english")) 
```
predict outputs the most likely language of the sentence.\
rank returns a list of tuples containing their respective probabilities.
```
da
[('ca', 2.175456259578823e-09), ('cs', 1.421048256844415e-08), ('da', 1.600260475242976e-06), ('de', 2.074262738460675e-06), ('en', 0.9998534917831421), ('es', 2.0248389631660757e-08), ('et', 9.649543386558435e-08), ('fi', 1.3886580063626752e-06), ('fr', 2.1743964850884367e-07), ('hr', 6.692872034363972e-08), ('hu', 0.00012513755063991994), ('it', 1.0744290079856e-07), ('lt', 9.55935547608533e-07), ('nl', 1.4533302419295069e-06), ('no', 6.45266709398129e-06), ('pl', 3.1909507924865466e-07), ('pt', 1.301345520232644e-07), ('ro', 6.668889795946598e-08), ('sv', 6.2374842855206225e-06), ('tr', 4.649361429187593e-08)]```
GitHub-Action-Python-Example 1.0.2
It is an example for GitHub Action
License: MIT
Requires Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Keywords: GitHubAction Python

# [GitHub Action Python Example](https://pypi.org/project/GitHub-Action-Python-Example/)

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/louis70109/line-notify#contributing)

This is a GitHub Action example for an auto publish PyPi package and test automation.

## Setup PyPi property

- [Go PyPi](https://pypi.org/) ➡️ Your project ➡️ Account Setting.

![](https://nijialin.com/images/2021/action/token1.png)

- Create an API token.
  - Note: If you just first time create the token, need to select **all project** at Scope.

![](https://nijialin.com/images/2021/action/token2.png)

- You would find **username** and **password**.
- Setup **PYPI_USERNAME** and **PYPI_PASSWORD** in GitHub `Setting` ➡️ `Secrets`.
- Click _New repository secret_ and add two property.

![](https://nijialin.com/images/2021/action/token3.png)

- Modify `GitHub_Action_Python_Example/__version__.py` version number(e.g. 1.0.2).

- Click and draft `Release` note.

![](https://nijialin.com/images/2021/action/release1.png)

- `.github/workflows/publish.yml` will help you to publish package to PyPi.

![](https://nijialin.com/images/2021/action/release4.png)

## Install package

```
pip install GitHub-Action-Python-Example
```

```python
from GitHub_Action_Python_Example.client import HelloWorld

message = HelloWorld(message="Change the World~")
print(message.get_message())
```

# License

[MIT](https://github.com/louis70109/line-notify/blob/master/LICENSE) © [NiJia Lin](https://nijialin.com/about/)
CRRD 0.1.0
China Railway Radio Decoder
License: MIT
Requires Python: >=3.7, <4
Keywords: railway radio decoder

## Introduction to CRRD
CRRD: China railway radio decoder. It supports the following packages:
- POCSAG type
    - LBJ train notice (approaching alarm)
    - LBJ time sync
- FFSK type
    - TDCS wireless train number check
    - TDCS wireless dispatching command (**partly untested**)
    - CIR cargo train tail device (partly supported)
    - LBJ passenger train tail device (**partly untested**)
    - LBJ train protection alarm (**totally untested**)
- Train no resolve
    - use CRRD.resolveTrainNo
## Installation
CRRD supports Python3.8+ only(may also work with 3.7, but untested). It can be installed using pip:
```shell script
pip install CRRD
```
or simply copy the CRRD module directory to your project

## Usage
```python
import CRRD
import binascii
# FFSK Example
line = "CIRFSK(45):0c 2b 00 3f 1f 00 00 1f 8c 30 20 03 03 01 20 20 20 54 70 00 00 f2 00 09 02 33 b7 11 7c 44 02 c8 03 95 01 11 82 00 f1 01 6e c3 41 ce b1 "
data = binascii.a2b_hex(line.split(':')[-1].replace(' ', ''))
package = CRRD.FFSKDecoder.decode(data) # CIR450TrainNo(train_no=T112, speed=124, mileage=1161.011)
package.to_string() # '客车本务 HXD3D-0521 担当T112次 特快列车 公里标：K1161+011(-) 速度：124km/h 总重: 968t 辆数:17 计长:40.5 区段号:241 1 司机号:4309870 车站号:130 进站'

# POCSAG Example
s = '11101 123 11882'
CRRD.POCSAGDecoder.decode(s, address=1234000) # LBJ821Notice(train_no=11101, speed=123, mileage=Decimal('1188.2'))
s = '1]231  23 11323'
CRRD.POCSAGDecoder.decode(s, address=1234000) # CRRD.decoder.BrokenPackage: Broken Package: Part1

# Resolve train no
CRRD.resolveTrainNo('6162') # ('', '6162', '跨局普通旅客慢车', None)
CRRD.resolveTrainNo('7465') # ('', '7465', '管内普通旅客慢车', '昆明局')
CRRD.resolveTrainNo('X101') # ('X', '101', '特快货物班列(160km/h)', None)
CRRD.resolveTrainNo('88392J') # ValueError: Invalid train no: 88392J
```


## Bug Report
feel free to report bug or request a feature on Github issues