semvec/pypi-packages huggingface dataset:
web3m-analytic-tool 0.1.0
AnalyticsTool is a Python package designed to interface with PostgreSQL and MongoDB databases.
Requires Python: >=3.11


# AnalyticsTool Package

## Overview

AnalyticsTool is a Python package designed to interface with PostgreSQL and MongoDB databases, utilizing AWS Secrets Manager for secure access. It provides a streamlined way to query and manipulate data, ideal for analytics and data management tasks.

## Features

- Access and manage data in PostgreSQL and MongoDB databases.
- Securely manage database credentials using AWS Secrets Manager.
- Comprehensive query functionalities to retrieve and manipulate data.

## Installation

Install AnalyticsTool via pip:

```bash
pip install web3m_analytic_tool
```

## Configuration

Before using AnalyticsTool, configure the following environment variables in your `.env` file for AWS access:

- `AWS_ACCESS_KEY`
- `AWS_SECRET_KEY`
- `REGION`

## Usage

### Initializing the Tool

Import and initialize `AnalyticsTool` with your AWS credentials:

```python
from analytics import AnalyticsTool


aws_access_key = 'your access key'
aws_secret_key = 'your secret key'
region = 'your region'

analytics = AnalyticsTool(aws_access_key, aws_secret_key, region)
```

### Example Usage

#### Fetch Data from PostgreSQL

Retrieve master user data:

```python
master_users = analytics.get_all_master_users_dict()
print(master_users)
```

#### Query Data from MongoDB

Get documents from a specific collection:

```python
documents = analytics.get_from_mongo_all_list_collection('your_collection_name')
print(documents)
```

## API Reference

### PostgreSQL Data Access

- `get_all_master_users_dict()`: Get master user data.
- `get_all_sub_users_dict()`: Get sub-user data.
- `get_all_wallet_activities_dict()`: Get wallet activity data.
- `get_all_wallets_dict()`: Get wallet data.

### MongoDB Data Access

- `get_from_mongo_all_list_collection(collection_name)`: Get all documents from a specified collection.
- `get_from_mongo_records_by_filter(collection_name, user_id=None, type=None)`: Get filtered documents from a collection.

## License

AnalyticsTool is released under the [MIT License](https://opensource.org/licenses/MIT).

## Contributing

Contributions to the AnalyticsTool project are welcome. Please refer to the `CONTRIBUTING.md` file for guidelines on how to contribute.
anybt 1.1.0
An Open Sourced Decentralized BitTorrent Search Engine
Requires Python: <4.0,>=3.7

# AnyBT: An Open Sourced Decentralized BitTorrent Search Engine

Introducing AnyBT, a tool for searching magnet link of all kinds of BitTorrent contents. It's based on a decentralized data protocol - [Glitter Protocol](https://twitter.com/GlitterProtocol).

You could use AnyBT to search for magnet links base on file names and displays search results with a simple interface.

There is also [a web version of AnyBT](https://anybt.eth.limo) works on [ENS](https://ens.domains/) and [IPFS](https://ipfs.tech/) available if you do not have Python environment.

## Getting Started

To get started, please follow these steps:

### Prerequisites

- Python (v3.7 or higher)

### Installation

Installing the tool, and you should make sure `your/download/path` in the `$PATH`, then you can use the command line tool.

```shell
pip install anybt
``` 

### Options

- `terms`:Specifies search terms to be queried. Required:yes.

- `-p <page>` or `--page <page>`:Specifies the page of results to display. Default: 0.

- `-l <limit>` or `--limit <limit>`:Specifies the number of per page to display. Default: 10.

- `-s <sort type>` or `--sort <sort type>`:Specifies the sorting sequence of results to display. Default: none.
    - `hot` :sort by the file heat
    - `size` :sort by the size of file
    - `date` :sort by the original publication time of the file

- `-t <filter type>` or `--type <fliter type>`:Specifies the category of result to display. Default: all.
    - `video` :video categories.
    - `document`:document categories.
    - `image` :image categories.
    - `music` :music categories.
    - `software` :software categories.
    - `package` :package categories.

### Examples

1. Search for keyword "Chaplin":

```shell
anybt  Chaplin
```

2. Search for keywords "Charlie Chaplin" and page 1, limit 5:

```shell
anybt  "Charlie Chaplin" -p 1 -l 5 
```

3. Search for keywords "Charlie Chaplin" and order by file size:

```shell
anybt  "Charlie Chaplin" -s size 
```

4. Search for keywords "Charlie Chaplin" and only keep the video resource:

```shell
anybt "Charlie Chaplin" -t video
```

## Built With

- [glitter-sdk-py](https://github.com/glitternetwork/glitter-sdk-py) A Python SDK for interacting with the Glitter Protocol.

## Contributing

If you would like to contribute to this project, feel free to fork the repository and submit a pull request with your changes.

## License

This project is licensed under the MIT License - see the LICENSE file for details.