semvec/pypi-packages huggingface dataset:
py-linked-list 1.0.0
A Python package with simple implementation of a singly linked list with various utility functions.
Keywords: linked list, singly linked list, data structure, python, utility functions, linked list operations

# Singly Linked List in Python

A simple implementation of a singly linked list with various utility functions.

## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [API Reference](#api-reference)
- [Contributing](#contributing)
- [License](#license)

## Installation

You can install the package via pip:

```bash
pip install singly_linked_list
```

## Usage
Here’s a quick example of how to use the SinglyLinkList class:

```
from singly_linked_list import SinglyLinkList

# Create a new linked list
linked_list = SinglyLinkList()

# Add elements
linked_list.push(10)  # Add to front
linked_list.append(20) # Add to end
linked_list.insert(10, 15) # Insert after 10

# Print the list
print(linked_list.printList())  # Output: [15, 10, 20]

# Remove an element
linked_list.remove(10)
print(linked_list.printList())  # Output: [15, 20]
```

## Features
- Add Nodes: push(data), append(data), insert(after_element, data)
- Remove Nodes: remove(element), delete()
- Search: search(key), count(key)
- Traversal: printList(), length(), getNth(n), getNthFromLast(n)
- Utilities: isPalindrome(), checkLoop(), lengthOfLoop(), uniqueSorted()
- Modify List: reverseList(), segregateEvenOdd()
- Merging Lists: mergeTwoLists(l1, l2)

## API Reference
The SinglyLinkList class provides methods for manipulating linked lists as described in the features section. Each method has its own functionality:

- Initialization: SinglyLinkList()

- Add Nodes:
  - `push(data):` Add a new node at the beginning.
  - `append(data):` Add a new node at the end.
  - `insert(after_element, data):` Insert a new node after a specified element.

- Remove Nodes:
  - `remove(element):` Remove the first occurrence of an element.
  - `delete():` Delete the entire linked list.

- Traversal and Querying:
  - `printList():` Return a list of node values.
  - `length():` Return the number of nodes in the list.
  - `getNth(n):` Get the nth node's data.
  - `getNthFromLast(n):` Get the nth node's data from the end.

- Utilities:
  - `isPalindrome():` Check if the list is a palindrome.
  - `checkLoop():` Check for loops in the list.
  - `lengthOfLoop():` Find the length of a loop if it exists.
  - `uniqueSorted():` Retrieve unique elements in sorted order.

- Modify List:
  - `reverseList():` Reverse the order of nodes.
  - `segregateEvenOdd():` Separate even and odd nodes.

- Merging Lists:
  - `mergeTwoLists(l1, l2):` Merge two sorted linked lists.

## Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.

## License
This project is licensed under the MIT License.

<img width="1407" alt="image" src="https://github.com/user-attachments/assets/e66a4dfa-ea83-44d0-bbbc-0d2e5fc44d36">
filesecure 0.7.0
A file encryption and decryption tool

# FileSecure Tool

**FileSecure** is a command-line utility for encrypting and decrypting files using AES-256-CBC encryption. This tool allows you to securely protect your files with a password, ensuring that sensitive data is not exposed.

## Features

- **Encrypt Files**: Secure your files with AES-256-CBC encryption.
- **Decrypt Files**: Restore encrypted files back to their original state.
- **Easy to Use**: Simple command-line interface with straightforward commands.
- **Password-Based Encryption**: Utilize a password to derive a strong encryption key.

## Installation

To use the FileSecure tool, you need to have Python and `pip` installed on your system.

```bash
pip install filesecure
```

## Usage

### Encrypting a File

To encrypt a file, use the following command:

```bash
filesecure encrypt --password "your_password" yourfile.txt --output-file yourfile.txt.secured
```
#### Parameters

- `--password "your_password"`: The password used to encrypt the file. Make sure to use a strong password.
- `yourfile.txt`: The name of the file you want to encrypt.
- `--output-file "yourfile.txt.secured"` (optional): The name of the file where the encrypted content will be saved. If not provided, the original file will be overwritten.

#### Important Notes

- If `--output-file` is not provided, the original file will be overwritten with the encrypted content.
- If the file is already encrypted (i.e., it starts with `FILE_SECURE`), a message will indicate that the file is already encrypted.

### Decrypting a File

To decrypt a file, use the following command:

```bash
filesecure decrypt --password "your_password" yourfile.txt.secured --output-file yourfile.txt
```

#### Parameters

- `--password "your_password"`: The password used to decrypt the file. It must match the password used during encryption.
- `yourfile.txt.secured`: The name of the file you want to decrypt.
- `--output-file "yourfile.txt"` (optional): The name of the file where the decrypted content will be saved. If not provided, the original file will be overwritten.

#### Important Notes

- If `--output-file` is not provided, the original file will be overwritten with the decrypted content.
- If the file is not encrypted (i.e., it does not start with `FILE_SECURE`), an error message will indicate that the file is not encrypted or is in an invalid format.

## Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
PoliPrompt 0.2.1
PoliPrompt performs data analysis with state-of-the-art foundation models
Requires Python: >=3.10
Keywords: nlp, llm, prompt


<p align="center">
  <img src="https://github.com/geshijoker/PoliPrompt/blob/main/poliprompt_logo.png" width="800" />
</p>

---

[![PyPI - Python](https://img.shields.io/badge/python-v3.8+-blue.svg)](https://pypi.org/project/poliprompt/)
[![Build](https://img.shields.io/github/actions/workflow/status/geshijoker/PoliPrompt/testing.yml?branch=main)](https://github.com/geshijoker/PoliPrompt/actions)
[![docs](https://img.shields.io/badge/docs-Passing-green.svg)](https://poliprompt-tutorial.readthedocs.io/en/latest/)
[![PyPI - PyPi](https://img.shields.io/pypi/v/PoliPrompt)](https://pypi.org/project/poliprompt/)
[![PyPI - License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/geshijoker/PoliPrompt/blob/main/LICENSE)
[![arXiv](https://img.shields.io/badge/arXiv-2409.01466-<COLOR>.svg)](https://arxiv.org/pdf/2409.01466)


# PoliPrompt
The repository for PoliPrompt

## Tutorial
[Tutorial of PoliPrompt](https://poliprompt-tutorial.readthedocs.io/en/latest/)