https://github.com/brunorns/javaiterables
Java dynammic iterables based on python
https://github.com/brunorns/javaiterables
iterable iterables iterator java jdk python-based
Last synced: 10 months ago
JSON representation
Java dynammic iterables based on python
- Host: GitHub
- URL: https://github.com/brunorns/javaiterables
- Owner: BrunoRNS
- License: mit
- Created: 2025-06-06T23:14:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-07T20:33:10.000Z (11 months ago)
- Last Synced: 2025-06-07T21:26:47.680Z (11 months ago)
- Topics: iterable, iterables, iterator, java, jdk, python-based
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaIterables Library
Welcome to **JavaIterables**, the library that brings Python-like `list` and `dict` functionality to Java! Say goodbye to boilerplate code and hello to clean, efficient data manipulation. Whether you're managing collections or building complex data structures, `List` and `Dict` have got your back.
---
## What Does It Do?
- **`List`**: Think of it as a Java-powered `list` from Python. Append, remove, sort, reverse, and more—all with ease.
- **`Dict`**: A key-value store that feels like Python's `dict`. Add, update, search, and sort your data like a pro.
---
## Why Use It?
Because Java deserves to be fun too! With JavaIterables, you can:
- Write less code.
- Handle collections like a Pythonista.
- Impress your colleagues with clean, readable Java.
---
## Quick Examples
### **Using `List`**
```java
import javaiterables.List;
public class Main {
public static void main(String[] args) {
List myList = new List();
myList.append("Java");
myList.append("is");
myList.append("awesome!");
System.out.println("Original List:");
myList.show();
myList.reverse();
System.out.println("Reversed List:");
myList.show();
}
}
```
### **Using `Dict`**
```java
import javaiterables.Dict;
public class Main {
public static void main(String[] args) {
Dict myDict = new Dict();
myDict.add("language", "Java");
myDict.add("type", "Object-Oriented");
myDict.add("fun", true);
System.out.println("Dictionary Contents:");
System.out.println("Language: " + myDict.get("language"));
System.out.println("Type: " + myDict.get("type"));
System.out.println("Is it fun? " + String.valueOf(myDict.get("fun")));
}
}
```
---
## Ready-to-Use `.jar`
No need to compile anything! Just grab the precompiled `javaiterables.jar` from the release section and add it to your project:
1. **As a module**: Add `requires javaiterables;` to your `module-info.java`.
2. **Without modules**: Add the `.jar` to your classpath and import the classes directly.
---
## Licence
This library is open-source and available under the MIT License. Feel free to use, modify, and distribute it as needed.
## Want More Details?
Check out the [full documentation](./docs/README.md) for a deep dive into all the features, methods, and examples.
## Special Thanks
- My programming professor
- Family and friends
- Everybody that helped me anyway
And of course, you, who is going to try this amazing library!