Skip to main content

A Python package that mimics Java collection classes

Project description

pyj

PyJ is a Python library designed to replicate key aspects of Java's collections framework and string handling.

Project Overview

PyJ is a Python library designed to replicate key aspects of Java's collections framework and string handling functionalities. This project aims to provide Pythonic equivalents of Java's well-established data structures and string utilities, making it easier for developers familiar with Java to transition to Python.

jcollections

The jcollections library mirrors Java's collection framework and allows java like methods. It allows to operate on various data structures like List, Map, Vector, Set, Queue etc.

jstring

The jstring library is a Pythonic recreation of Java's String class, designed to support various string manipulations and utilities. Key functionalities include:

String Initialization: Supports constructors for initializing strings from raw data, other string-like objects, and byte arrays. String Operations: Methods for substring extraction, character retrieval, and code point operations. Utility methods like toLowerCase, toUpperCase, and trim. Formatting and Conversion: Provides methods for formatting, comparing, and converting strings. These features enhance string handling by offering common transformations and manipulations similar to Java's String class.

Testing

To ensure correctness and reliability, the project includes:

API Usage Tests: Validate core functionalities and interactions of the collection classes, demonstrating expected behaviors through various operations. Unit Tests: Specifically target the String class, covering a wide range of string operations to ensure conformance to Java's String class behavior.

Conclusion

The jcollections and jstring libraries provide robust tools for Python developers who need Java-like collection and string handling capabilities. By mimicking Java’s well-known frameworks and utilities, these libraries offer a familiar interface for Java developers and extend Python’s capabilities in handling complex data structures and string operations.

Installation

You can install the package using pip command:

pip install pyjcore

Unit Test

Goto the project root directory & run the below command Run Below Command: (change the name of unit test file)

python -m unittest tests.test_stringbuilder

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

pyjcore-1.0.0.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

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

pyjcore-1.0.0-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file pyjcore-1.0.0.tar.gz.

File metadata

  • Download URL: pyjcore-1.0.0.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.8

File hashes

Hashes for pyjcore-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dc0e27d3f0c0b05ad23dbdf26eeb281276dc619da31b1a326e0bdd5db4d410eb
MD5 da874e56eddfa87a512ce92cd844edb5
BLAKE2b-256 403ab05d2121c3a1478a75cfe1c14660a6d618e98e545635e3aecad81ae4528c

See more details on using hashes here.

File details

Details for the file pyjcore-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyjcore-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.8

File hashes

Hashes for pyjcore-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63f6216b30ba79fcf3d8b95312452b70bc7321de33eb9f7d93b493dcdc8bf57a
MD5 5401602205b70448c098743de627c83a
BLAKE2b-256 46745ee81bac3f737bf812512351aa192f46aacc13189653808df7ac1edcb311

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