semvec/pypi-packages huggingface dataset:
mcstats 0.0.1
A tool to get basic information from Minecraft: Bedrock Edition servers.
License: MIT
Requires Python: >=3.6
Keywords: minecraft bedrock mcpe mcbe mcpeserver mcbeserver raknet

# py-mcpe-stats

[![PyPI](https://img.shields.io/pypi/v/mcstats.svg)](https://pypi.python.org/pypi/mcstats)

## Introduction
------------
mcstats (aka py-mcpe-stats) is a Python software that allows you to ping a Minecraft: Bedrock edition server for basic 
information.

## Install
-------
You are required to have Python >= 3.6 installed on your computer.

#### Install via pip
Run `pip install mcstats` in your terminal, and it will install the latest version of this project in your Python 
environment.

#### Install from source
Clone this repository and run the following in the root folder of this project:
```
python setup.py build install
```

## Usage
-----

#### Query with CLI
After installation, the `mcstats` command will be available in your Python environment. You can perform a query with 
the following command: `mcstats localhost`.

Example:
```
$ mcstats play.lbsg.net
Ping id: 850756528
Server id: 123456789
Game id: MCPE
Server name: §3US§8> SM Become a Creeper
Game protocol: 422
Game version: 1.16.210
Num players: 5479
Max players: 38865
Hash code: -1
Motd: None
Gamemode: None
Hash code: 1189580737
```

You can also specify the port with the `-p` option (e.g.: `mcstats localhost -p 19133`). For more options, please run 
`mcstats --help`.


#### Use as a module
You can also use the API by writing the following code in your project:

```python
from mcstats import mcstats

host = "localhost"
port = 19132

with mcstats(host, port=port, timeout=10) as data:
    # data is a StatsServerData object
    print(data)
```

## License
-------

MIT &copy; 2016-2021 w-gao
mcquery 0.1.0
Query tool for Minecraft: Bedrock Edition servers.
License: MIT
Requires Python: >=3.6
Keywords: minecraft bedrock mcpe mcbe mcpeserver mcbeserver

# mcquery

[![PyPI](https://img.shields.io/pypi/v/mcquery.svg)](https://pypi.python.org/pypi/mcquery/)


## Introduction
------------
mcquery (aka py-mcpe-query) is a Python software that uses the query protocol to ping a Minecraft: Bedrock edition 
server for basic information.

Note: If you get a timeout error, it might be that the target server do not support the query protocol. If that happens,
you can use [mcstats](https://github.com/w-gao/py-mcpe-stats) instead, where you can ping a server without the query 
protocol.

## Install
-------

#### Install via pip
Run `pip install mcquery` in your terminal, and it will install the latest version of this project in your Python 
environment.

#### Install from source

Clone this repository and run the following in the root folder of this project:
```
python setup.py build install
```

## Usage
-----

#### Query with CLI

After installation, the `mcquery` command will be available in your Python environment. You can perform a query with 
the following command: `mcquery localhost`.

Example:
```
$ mcquery play.lbsg.net
Motd: None
Hostname: {-name-:-Lifeboat Proxy-,-node-:{-type-:-PROXY-,-ip-:-proxy14.lbsg.net-,-players-:91,-maxplayers-:400,-tps-:39.950001}}
Game type: None
Game id: None
Version: None
Server engine: None
Plugins: ['']
Map: None
Num players: 91
Max players: 400
Whitelist: None
Host ip: **.***.**.**
Host port: 19132
Players: []
```

You can also specify the port with the `-p` option (e.g.: `mcquery localhost -p 19133`). For more options, please run 
`mcquery --help`.


#### Use as a module

You can also use the API by writing the following code in your project:

```python
from mcquery import mcquery

host = "localhost"
port = 19132

with mcquery(host, port=port, timeout=10) as data:
    # data is a QueryServerData object
    print(data)
```

## License
-------

MIT &copy; 2017-2021 w-gao
sha-assist 0.1.1
Easy SHA1, SHA256, SHA384, SHA512 and MD5 HTTPS domain fingerprinting
License: MIT
Requires Python: >=3.8,<4.0

# SHA Assistant

## Easy SHA1, SHA256, SHA384, SHA512, MD5 HTTPS domain fingerprinting\*\*.

Quick zero dependency fingerprinting with one command. sha_assist produces algorithmic digests of certificate public keys.

Out of box, sha_assist exposes 5 key digests i.e. (SHA1, SHA256, SHA384, SHA512 and MD5) but can be easily extended using `hashlib.algorithms_available`.

See [Extensibility](#Extensibility)

Credit to [dlenski](https://gist.github.com/dlenski) for [ssl.SSLSocket patching](https://gist.github.com/dlenski/fc42156c00a615f4aa18a6d19d67e208)

## Installation

## Usage and Options

`python3 sha_assist -d google.com -p 443`

Usage: sha_assist.py [OPTIONS]

| Options                   | Description                                                        |
| ------------------------- | ------------------------------------------------------------------ |
| -d or --domain [required] | [Text] Domain URL to be fingerprinted (eg. https://www.github.com) |
| -p, --port [optional]     | [Integer] Port to establish connection on. Defaults to 443         |

**NOTE: URL must be prefixed with https://**

## Extensibility

sha-assist produces algorithmic digests using hash-lib. By extension, all methods exposed by `hashlib.algorithms_available` can be used to produce required digests.
Output is by default hex but can be adapted to binary by replacing ~.digestHex().
time-interval 0.1.0
Python library which helps you create and manage time intervals.
License: MIT

# TimeInterval

This library helps you to create time intervals.

## Installation:

Run the following comamnd to install:

``` python
pip install time_interval
```

## Usage:

Create a 1hour time interval you like this:

``` python
TimeInterval.hour(1)  # Preferred way.
TimeInterval(1, 'h')  # Alternative solution.
```

You can use the following static methods to create time intervals in different intervals:
``` python
TimeInterval.second(1)  # or TimeInterval(1, 's')
TimeInterval.minute(1)  # or TimeInterval(1, 'm')
TimeInterval.hour(1)    # or TimeInterval(1, 'h')
TimeInterval.day(1)     # or TimeInterval(1, 'd')
TimeInterval.week(1)    # or TimeInterval(1, 'w')
TimeInterval.month(1)   # or TimeInterval(1, 'M')
TimeInterval.year(1)    # or TimeInterval(1, 'Y')
TimeInterval.from_str('1m')
```

***Note:** Lower and uppercase character does not matter (e.g 's' and 'S' both represents second),
the only exception is 'm' and 'M'. 'm' represents a minute while 'M' represents a month.*

### Functions:

You can compare TimeIntervals (==, !=, >, >=, <, <=).

You can use arithmetic operators (+, -, *, /).

``` python
str(TimeInterval.second(5))
>>> '5s'
```