semvec/pypi-packages huggingface dataset:
easytexts 0.3.0
Easytexts: Simplified text management for quick projects
Requires Python: >=3.10, <4

EasyText: A Simple File Handler for Python


Install EasyText using pip:

	pip install easytext

Usage:

Import the EasyText module:

from easytext import *


Writing and Appending:

append(location_and_name, text, log=False, newline=True): Appends text to a file, optionally adding a newline and logging the action.
Example:


append("my_file.txt", "This is a new line.")
# Optional: Log the action
append("my_file.txt", "Another line!", log=True)


rewrite(location_and_name, text, log=False): Overwrites the entire content of a file with new text, optionally logging the action.
Example:


rewrite("my_file.txt", "This is the new content.\n")



create_if_doesnt_exist(location_and_name, text, log=False): Creates a new file and writes text to it, handling existing files gracefully, optionally logging the action.
Example:


create_if_doesnt_exist("new_file.txt", "Hello, world!\n")



Reading:

read(location_and_name, log=False): Reads the entire content of a file and returns it as a string, optionally logging the action.
Example:


content = read("my_file.txt")
print(content)



Clearing and Checking:

clear(location_and_name, log=False): Empties the content of a file, optionally logging the action.
Example:


clear("my_file.txt")



is_clear(location_and_name, log=False): Checks if a file is empty, returning True if empty, False otherwise, optionally logging the result.
Example:


if is_clear("my_file.txt"):
    print("The file is empty.")


Deleting:

delete(location_and_name): Deletes a file.
Example:


delete("old_file.txt")



Checking Existence:

does_exist(location_and_name): Checks if a file exists, returning True if exists, False otherwise.
Example:


if does_exist("my_file.txt"):
    print("The file exists.")




Disclaimer

While EasyText handles common errors and is suitable for learning and small projects, it's not intended for critical or demanding projects due to its limited scope and testing.


Additional Notes

The log parameter allows you to control if certain actions are logged for debugging or tracking purposes.
The newline parameter in append allows you to control whether a newline character is added before the appended text.
ci-cmg-cruise-schema-orm 1.1.4
ORM classes for the cruise schema
Requires Python: >=2.7

# ci-cmg-cruise-schema-orm

## Setting Up a Virtual Environment with pyenv

Install pyenv-virtualenv if you have not already

```bash
brew install pyenv-virtualenv
pyenv install 3.9.13
```

If setting up pyenv for the first time, you will need to add these lines to your `~/.bash_profile`
or `~/.zprofile` (if using zsh, the default in macos Catalina and later) file in order for pyenv 
to automatically activate / deactivate python environments configured for a given directory (next step).
```bash
eval "$(pyenv init -)"  
eval "$(pyenv virtualenv-init -)"
```

configure python environment for project directory

```bash
pyenv virtualenv 3.9.13 cruise-schema-orm-3.9.13
pyenv local cruise-schema-orm-3.9.13
```

install dependencies into python environment
```bash
pip install -r requirements.txt
pip install -r test-requirements.txt
```

## Building
Since this project can use JDBC divers, Apache Maven is used to build and test the library.
Java 8+ and Maven must be installed and on the PATH.  JAVA_HOME and MAVEN_HOME
environment variables should be set.

This project uses a docker container running an Oracle database to run tests.  Docker must be installed.

To build and test, run the following from the root of the project:
```bash
mvn clean install
```

## Developing
remarkable-usb-web-interface-fuse 1.0.0
Userspace filesystem for remarkable usb web interface
Requires Python: >=3.11

[![remarkable_usb_web_interface_fuse on PyPI](https://img.shields.io/pypi/v/remarkable_usb_web_interface_fuse)](https://pypi.org/project/remarkable_usb_web_interface_fuse)

# reMarkable USB Web Interface FUSE
Userspace filesystem for remarkable usb web interface.

## Usage

```bash
pip install remarkable_usb_web_interface_fuse
rmuwifuse 10.11.99.1 /mnt
```

## Building

```bash
make # Build wheel and sdist packages in dist/
make wheel # Build wheel package in dist/
make sdist # Build sdist package in dist/
make dev # Test mounting 2.15.1.1189 to .venv/mnt
make install # Build wheel and install it with pipx or pip install --user
```