Skip to main content

A Python package that mimics Core Java collection classes

Project description

pyjcore

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

Project Overview

pyjcore 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.1.tar.gz (48.8 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.1-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjcore-1.0.1.tar.gz
  • Upload date:
  • Size: 48.8 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.1.tar.gz
Algorithm Hash digest
SHA256 6f2a9133ad76a1279d13d796133cb63e15f4b20bbed73badaefee373059acb28
MD5 ee8fed86b1922551675783fad341782b
BLAKE2b-256 b19178a2b7f973e5b1735b9725da9a6db37f3ba59deee6e6997c85f9d65dcbf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjcore-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a41adc3030e6cd927d32db2fd6b9a60a7e1df20a929eb8b019d54f1f2dbddc5
MD5 1ea899c626512830821674073584745a
BLAKE2b-256 592441a562653c37576b6b2499bcccd6377242fceb62c4d69cb870937a363408

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