Skip to main content

Convert text to formatted documents

Project description

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
python -m build

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

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text2doc-0.1.12.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text2doc-0.1.12-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file text2doc-0.1.12.tar.gz.

File metadata

  • Download URL: text2doc-0.1.12.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for text2doc-0.1.12.tar.gz
Algorithm Hash digest
SHA256 28eded3f6b89db7d8928891df1c1c29b132f4a1131109d593daba47c46561e9f
MD5 3f23abf9fa92b5e948a8abda2b952016
BLAKE2b-256 a0f4794edc0821a889bb4a3ab90042dca7e4a53c08bfa9f16e08aa70e1ebe67d

See more details on using hashes here.

File details

Details for the file text2doc-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: text2doc-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for text2doc-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 071c4daf708595b0363568f9c994583935e1cb5ebc4acf401ae6be47c94f34ab
MD5 f750a9ef228fca761ebdf1e841668144
BLAKE2b-256 9f3062e998f2e941c873a11e657a7194c605fc36e7a0d3c17e8bb22ba8a7ef6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page