Skip to main content

python.text2doc.com

# Clean up any previous build artifacts
rm -rf build/ dist/ *.egg-info/

# Build the package
python -m pip install --upgrade pip build
pip install --upgrade setuptools

python -m build

# Publish to PyPI (if needed)
python -m pip install --upgrade twine
python -m twine upload dist/*

python -m venv venv
source venv/bin/activate

Clean up the build artifacts and rebuild

rm -rf build/ dist/ src/text2doc.egg-info/
python -m pip install -e .
python -m build

text2doc implements a virtual file system in memory. This module provides an interface compatible with the os module and provides operations on files and directories stored in RAM rather than on disk.

Installation

pip install text2doc

Usage

from text2doc import text2doc

# Example usage
texts = ["This is a sample text.", "Another text to tokenize."]
tokenizer = YourTokenizer()  # Replace with your tokenizer instance
docs = text2doc(texts, tokenizer)
print(docs)

Development

Clean up any previous build artifacts

rm -rf build/ dist/ *.egg-info/

Build the package

python -m pip install --upgrade pip build
python -m build

Publish to PyPI (if needed)

python -m pip install --upgrade twine
python -m twine upload dist/*

Metadata

Release files for text2doc 0.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text2doc 0.1.16
File Size Uploaded
text2doc-0.1.16.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for text2doc 0.1.16
File Interpreter ABI Platform
text2doc-0.1.16-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / text2doc-0.1.16.tar.gz

Download URL text2doc-0.1.16.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5a9eb3e5f2ed198c21e573a37e9b71caf26c9372b0921350795d75c7d1a7f40e
BLAKE2b-256 checksum
How to use checksums
b897aba994b1465f833015d5f86e64bf1963cdcf296b6e5d71a87e2a31619d40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / text2doc-0.1.16-py3-none-any.whl

Download URL text2doc-0.1.16-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa34fa11aae80c905fbc51399ad9ed79f9d40cdfede217ad9996ec093552b297
BLAKE2b-256 checksum
How to use checksums
2fac6b479fa4f63125b8de6bbd67ca465ce526858f133888687bfa709749918f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.16 This release

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.12

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page