diff --git a/.flake8 b/.flake8 index db0928a9..d7b93fae 100644 --- a/.flake8 +++ b/.flake8 @@ -3,3 +3,4 @@ ignore = E203,W503,W504,E741 max-complexity = 25 show-source = true max-line-length = 88 +exclude = Basic diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 9d159ad0..4aa078ab 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ -github: [slowy07, athallahmaajid, KelvinMulyawan] +github: [slowy07, athallahmaajid] custom: ["https://saweria.co/bellshade"] diff --git a/.github/workflows/build.yml.deprecated b/.github/workflows/build.yml.deprecated deleted file mode 100644 index 0a15c275..00000000 --- a/.github/workflows/build.yml.deprecated +++ /dev/null @@ -1,25 +0,0 @@ -name: build - -on: - pull_request: - schedule: - - cron: "0 0 * * *" - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - - name: install library - run: | - python -m pip install --upgrade pip setuptools six wheel - python -m pip install pytest-cov -r requirements.txt - - name: jalankan testing - run: pytest --doctest-modules --ignore=Basic/ --cov-report=term-missing:skip-covered --cov=. . diff --git a/.github/workflows/directory.yml b/.github/workflows/directory.yml index 795c7c76..f1991591 100644 --- a/.github/workflows/directory.yml +++ b/.github/workflows/directory.yml @@ -4,8 +4,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Write DIRECTORY.md run: | chmod +x scripts/build_directory_md.py @@ -16,5 +16,5 @@ jobs: - name: Update DIRECTORY.md run: | git add DIRECTORY.md - git commit -am "update DIRECTORY.md" || true + git commit -am "docs: update DIRECTORY.md" || true git push --force origin HEAD:$GITHUB_REF || true diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml deleted file mode 100644 index 1c76379f..00000000 --- a/.github/workflows/pythonapp.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Python Testing - -on: - pull_request: - branches: [main] - -jobs: - build: - # menjalankan testing dengan 3 os yaitu - # linux (ubuntu), windows, dan macOS - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - # untuk menggunakan arsitektur pada arm dan xx86 - arm: [x86, arm64] - - steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Setting python versi 3.11 - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Cache pip dependecies - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt')}} - - - name: Install Dependencies - run: | - echo "Installing required dependencies" - python -m pip install --upgrade pip - pip install -r requirements.txt -r dev-requirements.txt - - - name: Python Linting - run: | - echo "Running flake8 tests" - flake8 . diff --git a/.github/workflows/uv_test.yml b/.github/workflows/uv_test.yml new file mode 100644 index 00000000..036b8843 --- /dev/null +++ b/.github/workflows/uv_test.yml @@ -0,0 +1,36 @@ +name: uv python test + +on: + pull_request: + branches: [main] + +jobs: + build: + # menjalankan testing dengan 3 os yaitu + # linux (ubuntu), windows, dan macOS + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Setting python + uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: install depedencies + run: uv add -r dev-requirements.txt + + - name: run testing + run: | + uv add pre-commit + uv run pre-commit install + uv run pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43622a28..2b977db8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-executables-have-shebangs - id: check-yaml @@ -9,21 +9,22 @@ repos: - id: requirements-txt-fixer - repo: https://github.com/MarcoGorelli/auto-walrus - rev: v0.2.2 + rev: 0.3.4 hooks: - id: auto-walrus - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.0 hooks: - id: flake8 args: - - --ignore=E203,W503,F401,W504,F821,F841,E741 + - --exclude=Basic + - --ignore=E203,W503,F401,W504,F821,F841,E741,E721 - --max-complexity=25 - --max-line-length=100 diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..24ee5b1b --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/Basic/01_introduction/README.md b/Basic/01_introduction/README.md index 29e87857..d8b932a6 100644 --- a/Basic/01_introduction/README.md +++ b/Basic/01_introduction/README.md @@ -17,7 +17,7 @@ Selamat datang di pemrograman Python dasar. Di sini kalian dapat memulai serta m Python dibuat dan dikembangkan oleh [Guido van Rossum](https://en.wikipedia.org/wiki/Guido_van_Rossum), programmer yang berasal dari Belanda. Python dibuat dengan menggunakan bahasa pemrograman C sebagai basisnya. Pemilihan nama Python itu sendiri diambil dari sebuah acara televisi yang lumayan terkenal yang bernama **Monty Pythonโ€™s Flying Circus** yang merupakan acara sirkus favorit dari Guido. -Python adalah bahasa pemograman multiparadigma, yaitu mendukung pemograman berorientasi objek, pemograman terstruktur, dan pemgoraman fungsional. +Python adalah bahasa pemograman multiparadigma, yaitu mendukung pemograman berorientasi objek, pemograman terstruktur, dan pemrograman fungsional. Kelebihan Python antara lain: diff --git a/Basic/02_tipe_data/README.md b/Basic/02_tipe_data/README.md index dba37f00..affa8fcf 100644 --- a/Basic/02_tipe_data/README.md +++ b/Basic/02_tipe_data/README.md @@ -128,7 +128,7 @@ Beberapa tipe data dalam Python: } ``` -- Berupa tipe data binary (bytes, bytearray, memmoryview) +- Berupa tipe data binary (bytes, bytearray, memoryview) - `bytes` @@ -149,7 +149,7 @@ Beberapa tipe data dalam Python: - `memoryview` - Memmoryview adalah cara aman untuk mengekspos protokol buffer dengan python. Ini memungkinkan untuk mengakses buffer internal suatu objek dengan membuat objek tampilan. Memmoryview mengambalikan fungsi tampilan memori daripada objek yang diberikan. + Memoryview adalah cara aman untuk mengekspos protokol buffer dengan python. Ini memungkinkan untuk mengakses buffer internal suatu objek dengan membuat objek tampilan. Memoryview mengambalikan fungsi tampilan memori daripada objek yang diberikan. ```python angka_saya = memoryview(bytes(12)) diff --git a/Basic/04_operator/operator_penugasan_ekspresi.py b/Basic/04_operator/operator_penugasan_ekspresi.py index 273a4294..d98d6c0f 100644 --- a/Basic/04_operator/operator_penugasan_ekspresi.py +++ b/Basic/04_operator/operator_penugasan_ekspresi.py @@ -16,7 +16,6 @@ +------------+--------------+-----------------+ """ - # Contoh dibawah ini dapat dilihat perbedaannya jika melalui CLI Python # Tidak akan mengembalikan nilai, hanya melakukan pengisian # walrus = False diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cd06f09e..90e9944e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -109,19 +109,25 @@ flake8 perubahan_kamu.py flake8 . ``` -Untuk *doctests*: +**Saran** -```bash -pytest . --doctest-modules -``` +[Pemahaman list dan generator](https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions) lebih disukai daripada penggunaan `lambda`, `map`, `filter`. Tetapi yang penting adalah menunjukkan kekuatan Python dalam kode yang mudah dibaca dan dipelihara. + +kamu bisa dengan menggunakan pre-commit sebagai cek / menjalankan semua test dengan cara ```bash -pytest perubahan_kamu.py --doctest-modules --ignore=Basic/ -``` +# jika tidak ada pre-commit, install terlebih dahulu +pip install pre-commit -**Saran** +# jika menggunakan uv, kamu bisa menginstall dengan menggunakan uv +uv pip install pre-commit -[Pemahaman list dan generator](https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions) lebih disukai daripada penggunaan `lambda`, `map`, `filter`. Tetapi yang penting adalah menunjukkan kekuatan Python dalam kode yang mudah dibaca dan dipelihara. +# jalakan perintahnya +pre-commit run --all-files + +# jika menggunakan uv +uv run pre-commit run --all-files +``` ## Tambahan Perubahan diff --git a/DIRECTORY.md b/DIRECTORY.md index 2910cc0b..e49bece0 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -143,8 +143,14 @@ * [Linear Search](https://github.com/bellshade/Python/blob/main/algorithm/searching/linear_search.py) * Sorting * [Bead Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bead_sort.py) + * [Bitonic Sorting](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bitonic_sorting.py) + * [Bogo Sorting](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bogo_sorting.py) * [Bubble Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bubble_sort.py) * [Bubble Sort Ascii](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bubble_sort_ascii.py) + * [Bucket Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/bucket_sort.py) + * [Circle Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/circle_sort.py) + * [Gnome Sorting](https://github.com/bellshade/Python/blob/main/algorithm/sorting/gnome_sorting.py) + * [Merge Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/merge_sort.py) * [Pop Sort](https://github.com/bellshade/Python/blob/main/algorithm/sorting/pop_sort.py) * [Quick Sorting](https://github.com/bellshade/Python/blob/main/algorithm/sorting/quick_sorting.py) @@ -164,6 +170,7 @@ * [Polynominal](https://github.com/bellshade/Python/blob/main/implementation/artificial_intelligence/polynominal.py) * [Random Forest](https://github.com/bellshade/Python/blob/main/implementation/artificial_intelligence/random_forest.py) * [Rigde Regession](https://github.com/bellshade/Python/blob/main/implementation/artificial_intelligence/rigde_regession.py) + * [Similarity Searching](https://github.com/bellshade/Python/blob/main/implementation/artificial_intelligence/similarity_searching.py) * Audio Filter * [Audio Response](https://github.com/bellshade/Python/blob/main/implementation/audio_filter/audio_response.py) * [Iir Filter](https://github.com/bellshade/Python/blob/main/implementation/audio_filter/iir_filter.py) @@ -216,13 +223,20 @@ * [Haversine](https://github.com/bellshade/Python/blob/main/implementation/geodesy_egineering/haversine.py) * Graphic * [Bezier Curve](https://github.com/bellshade/Python/blob/main/implementation/graphic/bezier_curve.py) + * Image Processing + * [Gambar Sepia](https://github.com/bellshade/Python/blob/main/implementation/image_processing/gambar_sepia.py) * Linear Algebra + * [Faktorisasi Lu](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/Faktorisasi_LU.py) + * [Ldlt Decomposition](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/LDLT_decomposition.py) + * [Lu Decomposition](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/LU_decomposition.py) * [Conjugate Gradient](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/conjugate_gradient.py) + * [Operasi Matriks](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/operasi_matriks.py) * [Polynom For Point](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/polynom_for_point.py) * [Rayleigh Quotient](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/rayleigh_quotient.py) * [Transformation 2D](https://github.com/bellshade/Python/blob/main/implementation/linear_algebra/transformation_2d.py) * Physics * [N Body Simulation](https://github.com/bellshade/Python/blob/main/implementation/physics/n_body_simulation.py) + * [Pendulum](https://github.com/bellshade/Python/blob/main/implementation/physics/pendulum.py) * [Percepatan](https://github.com/bellshade/Python/blob/main/implementation/physics/percepatan.py) * Statistic * [Labelencoding](https://github.com/bellshade/Python/blob/main/implementation/statistic/LabelEncoding.py) @@ -245,15 +259,24 @@ * [Aliquot Sum](https://github.com/bellshade/Python/blob/main/math/aliquot_sum.py) * [Angka Proth](https://github.com/bellshade/Python/blob/main/math/angka_proth.py) * [Bisection Math](https://github.com/bellshade/Python/blob/main/math/bisection_math.py) + * [Convolution](https://github.com/bellshade/Python/blob/main/math/convolution.py) + * [Cos](https://github.com/bellshade/Python/blob/main/math/cos.py) * [Counter](https://github.com/bellshade/Python/blob/main/math/counter.py) + * [Deret Taylor](https://github.com/bellshade/Python/blob/main/math/deret_taylor.py) * [Digit Sum](https://github.com/bellshade/Python/blob/main/math/digit_sum.py) + * [Exponential Function](https://github.com/bellshade/Python/blob/main/math/exponential_function.py) * [Faktor Prima](https://github.com/bellshade/Python/blob/main/math/faktor_prima.py) + * [Faktorial Looping](https://github.com/bellshade/Python/blob/main/math/faktorial_looping.py) + * [Faktorial Rekursif](https://github.com/bellshade/Python/blob/main/math/faktorial_rekursif.py) + * [Fft](https://github.com/bellshade/Python/blob/main/math/fft.py) * [Fibonacci](https://github.com/bellshade/Python/blob/main/math/fibonacci.py) + * [Fungsi Gamma](https://github.com/bellshade/Python/blob/main/math/fungsi_gamma.py) * [Geometric Sum](https://github.com/bellshade/Python/blob/main/math/geometric_sum.py) * [Intergration](https://github.com/bellshade/Python/blob/main/math/intergration.py) * [Is Prime](https://github.com/bellshade/Python/blob/main/math/is_prime.py) * [Iteration Power](https://github.com/bellshade/Python/blob/main/math/iteration_power.py) * [Jumlah Deret Geomteri](https://github.com/bellshade/Python/blob/main/math/jumlah_deret_geomteri.py) + * [Kombinasi Permutasi](https://github.com/bellshade/Python/blob/main/math/kombinasi_permutasi.py) * [Midpoint](https://github.com/bellshade/Python/blob/main/math/midpoint.py) * [Pascal Triangle](https://github.com/bellshade/Python/blob/main/math/pascal_triangle.py) * [Persamaan Kuadarat Bilangan Kompleks](https://github.com/bellshade/Python/blob/main/math/persamaan_kuadarat_bilangan_kompleks.py) @@ -266,6 +289,7 @@ * [Rectangle](https://github.com/bellshade/Python/blob/main/math/rectangle.py) * [Recursion Power](https://github.com/bellshade/Python/blob/main/math/recursion_power.py) * [Relu](https://github.com/bellshade/Python/blob/main/math/relu.py) + * [Rieman Integral](https://github.com/bellshade/Python/blob/main/math/rieman_integral.py) * [Segmented Sieve](https://github.com/bellshade/Python/blob/main/math/segmented_sieve.py) * [Sieve Of Eratosthenes](https://github.com/bellshade/Python/blob/main/math/sieve_of_eratosthenes.py) * [Sigmoid](https://github.com/bellshade/Python/blob/main/math/sigmoid.py) @@ -285,31 +309,66 @@ * [Volume](https://github.com/bellshade/Python/blob/main/math/volume.py) * [Zellers Congruence](https://github.com/bellshade/Python/blob/main/math/zellers_congruence.py) -## Object Oriented Programming +## Matrix + * [Matriks Special](https://github.com/bellshade/Python/blob/main/matrix/matriks_special.py) + * [Median Matriks](https://github.com/bellshade/Python/blob/main/matrix/median_matriks.py) + * [Pencarian Biner Matrix](https://github.com/bellshade/Python/blob/main/matrix/pencarian_biner_matrix.py) + +## Object Oriented + * Advance + * Pycode + * Argument + * [Args](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/argument/args.py) + * Decorators + * [Contoh Decorators1](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/contoh_decorators1.py) + * [Contoh Decorators2](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/contoh_decorators2.py) + * [Contoh Decorators3](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/contoh_decorators3.py) + * [Decorators](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/decorators.py) + * [Decorators Chaining](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/decorators_chaining.py) + * [Decorators Return](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/decorators/decorators_return.py) + * Generators + * [Generators For](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/generators/generators_for.py) + * [Generators While](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/generators/generators_while.py) + * Magic Methods + * [Mmethod](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/magic_methods/Mmethod.py) + * Metaclass + * [Composite](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/metaclass/composite.py) + * [Factory](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/metaclass/factory.py) + * [Proxy](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/metaclass/proxy.py) + * [Singleton](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/metaclass/singleton.py) + * Type Hint + * [Hinter](https://github.com/bellshade/Python/blob/main/object_oriented/advance/pycode/type_hint/hinter.py) * Basic Oop * 01 Atribut Kelas - * [Atribut Kelas](https://github.com/bellshade/Python/blob/main/object_oriented_programming/basic_oop/01_atribut_kelas/atribut_kelas.py) + * [Atribut Kelas](https://github.com/bellshade/Python/blob/main/object_oriented/basic_oop/01_atribut_kelas/atribut_kelas.py) * Intermediate * Abstraksi - * [Abstraksi](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/abstraksi/abstraksi.py) + * [Abstraksi](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/abstraksi/abstraksi.py) * Encapsulation - * [Encapsulation](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/encapsulation/encapsulation.py) - * [Encapsulation2](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/encapsulation/encapsulation2.py) + * [Encapsulation](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/encapsulation/encapsulation.py) + * [Encapsulation2](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/encapsulation/encapsulation2.py) * Inheritance - * [Inheritance](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/inheritance/inheritance.py) + * [Inheritance](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/inheritance/inheritance.py) * Polimorfis - * [Polimorfisme Kelas](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/polimorfis/polimorfisme_kelas.py) - * [Polimorfisme Sederhana](https://github.com/bellshade/Python/blob/main/object_oriented_programming/intermediate/polimorfis/polimorfisme_sederhana.py) + * [Polimorfisme Kelas](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/polimorfis/polimorfisme_kelas.py) + * [Polimorfisme Sederhana](https://github.com/bellshade/Python/blob/main/object_oriented/intermediate/polimorfis/polimorfisme_sederhana.py) ## Other * [Anagramcheck](https://github.com/bellshade/Python/blob/main/other/anagramCheck.py) + * [Composite Number](https://github.com/bellshade/Python/blob/main/other/composite_number.py) * [Date To Weekday](https://github.com/bellshade/Python/blob/main/other/date_to_weekday.py) * [Doomsday Alg](https://github.com/bellshade/Python/blob/main/other/doomsday_alg.py) + * [Happy Number](https://github.com/bellshade/Python/blob/main/other/happy_number.py) * [Hex To Rgb](https://github.com/bellshade/Python/blob/main/other/hex_to_rgb.py) * [Is Palindrom](https://github.com/bellshade/Python/blob/main/other/is_palindrom.py) + * [Kaprekar Number](https://github.com/bellshade/Python/blob/main/other/kaprekar_number.py) + * [Krisnamurtycheck](https://github.com/bellshade/Python/blob/main/other/krisnamurtyCheck.py) + * [Logic Gate](https://github.com/bellshade/Python/blob/main/other/logic_gate.py) + * [Lucky Number](https://github.com/bellshade/Python/blob/main/other/lucky_number.py) * [Power Dac](https://github.com/bellshade/Python/blob/main/other/power_dac.py) * [Rgb To Hex](https://github.com/bellshade/Python/blob/main/other/rgb_to_hex.py) * [Strong Password Check](https://github.com/bellshade/Python/blob/main/other/strong_password_check.py) + * [Taxicab](https://github.com/bellshade/Python/blob/main/other/taxicab.py) * [Tower Of Hanoi](https://github.com/bellshade/Python/blob/main/other/tower_of_hanoi.py) * Turtle * [Logo Apple](https://github.com/bellshade/Python/blob/main/other/turtle/logo_apple.py) @@ -333,6 +392,7 @@ * [Binary Tree Node Sum](https://github.com/bellshade/Python/blob/main/struktur_data/tree/binary_search_tree/binary_tree_node_sum.py) * [Binary Tree Path Sum](https://github.com/bellshade/Python/blob/main/struktur_data/tree/binary_search_tree/binary_tree_path_sum.py) * [Binary Tree Mirror](https://github.com/bellshade/Python/blob/main/struktur_data/tree/binary_tree_mirror.py) + * [Fenwick Tree](https://github.com/bellshade/Python/blob/main/struktur_data/tree/fenwick_tree.py) ## Web Programming * [Breadcrumb Generator](https://github.com/bellshade/Python/blob/main/web_programming/breadcrumb_generator.py) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..e69de29b diff --git a/README.md b/README.md index 744664ac..0a6ce840 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ Repositori ini berisi kumpulan berbagai macam _source code_ struktur data, algor Python dibuat dan dikembangkan oleh Guido Van Rossum, programmer yang berasal dari Belanda. Pemilihan nama python itu sendiri diambil dari sebuah acara televisi yang lumayan terkenal yang bernama **Moth Python Flying Circus** yang merupakan acara sirkus favorit dari Guido. -Python adalah bahasa pemrograman multi paradigma, pemrogramaan berorientasi objek dan permograman terstruktur juga didukung penuh, dan banyak fiturnya mendukung pemrograman fungsional. +Python adalah bahasa pemrograman multi paradigma, pemrogramaan berorientasi objek dan pemrograman terstruktur juga didukung penuh, serta banyak fiturnya mendukung pemrograman fungsional. -Kelebihan diatara python antara lain +Kelebihan diantara python antara lain - Mudah digunakan untuk menulis di perangkat lunak terbaru - Mudah untuk diajarkan @@ -35,15 +35,15 @@ Contoh implementasi dari bahasa pemrograman python adalah - Aplikasi bisnis seperti tryton - Pembuatan game seperti battlefield 2 - Pengembangan web seperti django atau flask (library) -- Pengembangan dari situs web dan layanan sperti dropbox, buzfeed dan uber +- Pengembangan dari situs web dan layanan seperti dropbox, buzfeed dan uber ### Baru Belajar? Mulai dari [sini](Basic) ๐ŸŒŸ -Untuk menggunakan repositori dengan maksimal, kalian perlu belajar programming dasar dahulu. Silahkan ikuti alur belajar berikut untuk mempelajari dasar - dasar pemograman langsung menggunakan Python +Untuk menggunakan repositori dengan maksimal, kalian perlu belajar programming dasar dahulu. Silakan ikuti alur belajar berikut untuk mempelajari dasar-dasar pemograman langsung menggunakan Python | Langkah | Topik | Target Pembelajaran | Materi Rujukan | | :-----: | :------------------------------: | :-----------------------------------------------------------------------------------: | :-----------------------------------: | -| 01 | Introduksi Pemograman dan Python | Memahami apa itu membuat program dan apa peran Python dalam proses pembuatan program | [Materi](Basic/01_introduction) | +| 01 | Introduksi Pemrograman dan Python | Memahami apa itu membuat program dan apa peran Python dalam proses pembuatan program | [Materi](Basic/01_introduction) | | 02 | Tipe data | Memahami apa itu tipe data | [Materi](Basic/02_tipe_data) | | 03 | Variabel | Memahami apa itu variabel | [Materi](Basic/03_variable) | | 04 | Operasi | Dapat melakukan operasi sederhana menggunakan program yang ditulis menggunakan Python | [Materi](Basic/04_operator) | @@ -60,12 +60,12 @@ Untuk menggunakan repositori dengan maksimal, kalian perlu belajar programming d | 15 | Math | Mengenal module math pada python | [Materi](Basic/15_python_math) | | 16 | kelas | Mengenal kelas pada python | [Materi](Basic/16_class) | -Setelah menyelesaikan seluruh rangkaian pengenalan dasar - dasar pemograman, kalian dapat mulai untuk mempelajari topik - topik lain yang jauh lebih seru! +Setelah menyelesaikan seluruh rangkaian pengenalan dasar-dasar pemrograman, kalian dapat mulai untuk mempelajari topik-topik lain yang jauh lebih seru! Untuk sekarang, mulai saja dulu dengan [Object Oriented Programming](object_oriented_programming/README.md) ## ๐ŸŽ“ Topik Lanjutan ๐ŸŽ“ -Jika kalian sudah menguasai dasar - dasar pemograman beserta dengan paradigma _Object Oriented Programming_, kalian bisa langsung mengeksplorasi topik - topik lain yang jauh lebih menantang dan tidak kalah seru. Di repositori ini, kami telah menyiapkan beberapa topik yang mungkin kamu suka. +Jika kalian sudah menguasai dasar-dasar pemrograman beserta dengan paradigma _Object Oriented Programming_, kalian bisa langsung mengeksplorasi topik-topik lain yang jauh lebih menantang dan tidak kalah seru. Di repositori ini, kami telah menyiapkan beberapa topik yang mungkin kamu suka. 1. [Struktur Data](/struktur_data) diff --git a/algorithm/arithmetic_analysis/in_static_equilibrium.py b/algorithm/arithmetic_analysis/in_static_equilibrium.py index 4ebecf02..5a8a0a17 100644 --- a/algorithm/arithmetic_analysis/in_static_equilibrium.py +++ b/algorithm/arithmetic_analysis/in_static_equilibrium.py @@ -2,7 +2,6 @@ Memeriksa apakah sistem gaya berada dalam kesetimbangan statis. """ - from numpy import array, cos, cross, ndarray, radians, sin diff --git a/algorithm/matrix/matrix_class.py b/algorithm/matrix/matrix_class.py index 1c5fc1f3..368b4aba 100644 --- a/algorithm/matrix/matrix_class.py +++ b/algorithm/matrix/matrix_class.py @@ -120,9 +120,11 @@ def cofactors(self): return Matrix( [ [ - self.minors().rows[row][column] - if (row + column) % 2 == 0 - else self.minors().rows[row][column] * -1 + ( + self.minors().rows[row][column] + if (row + column) % 2 == 0 + else self.minors().rows[row][column] * -1 + ) for column in range(self.minors().num_columns) ] for row in range(self.minors().num_rows) diff --git a/algorithm/searching/_types.py b/algorithm/searching/_types.py index 95eb70d7..4dda9bb1 100644 --- a/algorithm/searching/_types.py +++ b/algorithm/searching/_types.py @@ -9,7 +9,11 @@ class SizedIndexable(Iterable[T], Protocol[T]): @overload def __getitem__(self, key: slice) -> SizedIndexable[T]: - ... + """ + Hanya untuk suppress LGTM alert + """ def __len__(self) -> int: - ... + """ + hanya untuk supress LGTM alert + """ diff --git a/algorithm/searching/binary_search.py b/algorithm/searching/binary_search.py index 7f5173d2..e3cd6770 100644 --- a/algorithm/searching/binary_search.py +++ b/algorithm/searching/binary_search.py @@ -25,6 +25,7 @@ https://en.wikipedia.org/wiki/Binary_search_algorithm """ + from __future__ import annotations from typing import Any, Protocol, TypeVar @@ -34,13 +35,17 @@ class Comparable(Protocol): def __lt__(self, other: Any) -> bool: - ... + """ + Hanya untuk supress LGTM alert + """ def __le__(self, other: Any) -> bool: """Hanya untuk suppress LGTM alert.""" def __gt__(self, other: Any) -> bool: - ... + """ + Hanya untuk supress LGTM alert + """ def __ge__(self, other: Any) -> bool: """Hanya untuk suppress LGTM alert.""" diff --git a/algorithm/searching/linear_search.py b/algorithm/searching/linear_search.py index 24d4c147..c22d788b 100644 --- a/algorithm/searching/linear_search.py +++ b/algorithm/searching/linear_search.py @@ -14,6 +14,7 @@ https://en.wikipedia.org/wiki/Linear_search """ + from __future__ import annotations from typing import TypeVar diff --git a/algorithm/sorting/bitonic_sorting.py b/algorithm/sorting/bitonic_sorting.py new file mode 100644 index 00000000..690effdb --- /dev/null +++ b/algorithm/sorting/bitonic_sorting.py @@ -0,0 +1,64 @@ +from __future__ import annotations + + +def komparasi_swap(array: list[int], index1: int, index2: int, direction: int) -> None: + """ + membanding nilai pada indeks 1 dan index 2 yang diberikan dalam array, kemudian swap + sesuai dengan arah yang diberikan + + >>> arr = [12, 42, -21, 1] + >>> komparasi_swap(arr, 1, 2, 1) + >>> arr + [12, -21, 42, 1] + """ + if (direction == 1 and array[index1] > array[index2]) or ( + direction == 0 and array[index1] < array[index2] + ): + array[index1], array[index2] = array[index2], array[index1] + + +def bitonic_merge(array: list[int], low: int, length: int, direction: int) -> None: + """ + fungsi rekursif yang mengurutkan urutan bitonic secara naik, jika arah = 1, + dan secara menurun jika arah = 0. urutan yang akan diurutkan + dimulai pada posisi indeks rendah, parameter panjang adalah + jumlah elemen yang akan diurutkan + + >>> arr = [12, 42, -21, 1] + >>> bitonic_merge(arr, 0, 4, 1) + >>> arr + [-21, 1, 12, 42] + """ + if length > 1: + mid = int(length / 2) + for i in range(low, low + mid): + komparasi_swap(array, i, i + mid, direction) + bitonic_merge(array, low, mid, direction) + bitonic_merge(array, low + mid, mid, direction) + + +def bitonic_sorting(array: list[int], low: int, length: int, direction: int) -> None: + """ + fungsi ini pertama menghasilkan urutan bitonik dengan mengurutkan secara rekursif + dua setengahnya dalam urutan yang berlawan, kemudian memanggil fungsi + bitonic_merge untuk menggabungkan urutan yang sama + + >>> arr = [12, 34, 92, -23, 0, -121, -167, 145] + >>> bitonic_sorting(arr, 0, 8, 0) + >>> arr + [145, 92, 34, 12, 0, -23, -121, -167] + """ + if length > 1: + mid = int(length / 2) + bitonic_sorting(array, low, mid, 1) + bitonic_sorting(array, low + mid, mid, 0) + bitonic_merge(array, low, length, direction) + + +if __name__ == "__main__": + import doctest + + # dat_input = input("masukkan beberapa angka menggunakan koma:").strip() + # tidak_tersorting = [int(item.strip()) for item in dat_input.split(",")] + # bitonic_sorting(tidak_tersorting, 0, len(tidak_tersorting), 1) + doctest.testmod(verbose=True) diff --git a/algorithm/sorting/bogo_sorting.py b/algorithm/sorting/bogo_sorting.py new file mode 100644 index 00000000..0bacefc6 --- /dev/null +++ b/algorithm/sorting/bogo_sorting.py @@ -0,0 +1,34 @@ +import random + + +def bogo_sorting(arr: list[int]) -> list[int]: + """ + algoritma bogo sorting adalah algoritma yang bekerja dengan + mengurutkan elemen array secara acak kemudian memeriksa apakah array + tersebut sudah diurutkan. jika tidak, maka akan mengacak kembali. + proses tersebut dilanjutkan hingga semua array ter-urut. + algoritma ini termasuk algoritma sorting yang paling tidak efisien + + >>> bogo_sorting([0, 2, 5, 1, 2]) + [0, 1, 2, 2, 5] + """ + + # membuat fungsi untuk mengecek apakah array + # sudah disorting + def sudah_disorting(data): + for i in range(len(data) - 1): + if data[i] > data[i + 1]: + return False + return True + + # jika array belum disorting maka lakukan + # pengacakan hingga tersorting + while not sudah_disorting(arr): + random.shuffle(arr) + return arr + + +if __name__ == "__main__": + import doctest + + doctest.testmod(verbose=True) diff --git a/algorithm/sorting/bucket_sort.py b/algorithm/sorting/bucket_sort.py new file mode 100644 index 00000000..9572d5b4 --- /dev/null +++ b/algorithm/sorting/bucket_sort.py @@ -0,0 +1,51 @@ +# Bucket Sort adalah algoritma pengurutan +# yang membagi array ke dalam beberapa bucket, +# lalu setiap bucket diurutkan secara individu +# dan akhirnya semua bucket digabungkan menjadi array akhir. + +# Distribusikan elemen ke dalam bucket. +# Urutkan masing-masing bucket. +# Gabungkan semua bucket menjadi satu list terurut. + + +def bucket_sort(collection: list[float]) -> list[float]: + """ + contoh + >>> bucket_sort([0.25, 0.36, 0.58, 0.41, 0.29, 0.22, 0.45, 0.79]) + [0.22, 0.25, 0.29, 0.36, 0.41, 0.45, 0.58, 0.79] + >>> bucket_sort([0.5, 0.3, 0.9, 0.7]) + [0.3, 0.5, 0.7, 0.9] + """ + + if len(collection) == 0: + return collection + + # Membuat bucket kosong + bucket_count: int = len(collection) + buckets: list[list[float]] = [[] for _ in range(bucket_count)] + + # Menempatkan elemen ke dalam bucket + for value in collection: + index: int = int(value * bucket_count) + if index != bucket_count: + buckets[index].append(value) + else: + buckets[bucket_count - 1].append(value) + + # Mengurutkan setiap bucket dan menggabungkannya + sorted_array: list[float] = [] + for bucket in buckets: + sorted_array.extend(sorted(bucket)) + + return sorted_array + + +if __name__ == "__main__": + import doctest + + doctest.testmod(verbose=True) + + data: list[float] = [0.78, 0.17, 0.39, 0.26, 0.72, 0.94, 0.21, 0.12, 0.23, 0.68] + unsorted: list[float] = [float(item) for item in data] + print(f"data yang belum di sorting adalah {unsorted}") + print(f"data yang sudah di sorting {bucket_sort(unsorted)}") diff --git a/algorithm/sorting/circle_sort.py b/algorithm/sorting/circle_sort.py new file mode 100644 index 00000000..c0a13839 --- /dev/null +++ b/algorithm/sorting/circle_sort.py @@ -0,0 +1,52 @@ +# Circle Sort adalah algoritma pengurutan +# berbasis rekursif yang membandingkan dan +# menukar elemen-elemen dari ujung ke tengah, +# berulang sampai array tersortir. + +# Bandingkan elemen paling kiri dengan paling kanan. +# Jika elemen kiri lebih besar, tukar dengan elemen kanan. +# Lanjutkan ke tengah array, lalu lakukan rekursi. + + +def circle_sort(collection: list[int]) -> list[int]: + """ + contoh + >>> circle_sort([5, 3, 2, 8, 1, 4]) + [1, 2, 3, 4, 5, 8] + >>> circle_sort([10, 20, -5, 7, 3]) + [-5, 3, 7, 10, 20] + """ + + def circle_sort_rec(arr: list[int], left: int, right: int) -> bool: + if left == right: + return False + swapped = False + l, r = left, right + while l < r: + if arr[l] > arr[r]: + arr[l], arr[r] = arr[r], arr[l] + swapped = True + l += 1 + r -= 1 + if l == r and arr[l] > arr[r + 1]: + arr[l], arr[r + 1] = arr[r + 1], arr[l] + swapped = True + mid = (right - left) // 2 + left + left_swapped = circle_sort_rec(arr, left, mid) + right_swapped = circle_sort_rec(arr, mid + 1, right) + return swapped or left_swapped or right_swapped + + while circle_sort_rec(collection, 0, len(collection) - 1): + pass + return collection + + +if __name__ == "__main__": + import doctest + + doctest.testmod(verbose=True) + + data: list[int] = [10, -2, 7, 4, 3] + unsorted: list[int] = [int(item) for item in data] + print(f"data yang belum di sorting adalah {unsorted}") + print(f"data yang sudah di sorting {circle_sort(unsorted)}") diff --git a/algorithm/sorting/gnome_sorting.py b/algorithm/sorting/gnome_sorting.py new file mode 100644 index 00000000..865667b2 --- /dev/null +++ b/algorithm/sorting/gnome_sorting.py @@ -0,0 +1,38 @@ +def gnome_sorting(daftar: list) -> list: + """ + Implementasi dari algoritma gnome sorting + + fungsi yang menerima daftar yang dapat nantinya diubah + dan diurut dengan elemen heterogen yang bisa dibandingkan, + lalu mengembalikan list tersebut dalam urutan menaik + + Parameter: + daftar (list): data yang ingin diberikan + + Return: + (list): hasil sorting gnome + + Contoh: + >>> gnome_sorting([0, 5, 3, 2, 2]) + [0, 2, 2, 3, 5] + """ + if len(daftar) <= 1: + return daftar + + i = 1 + while i < len(daftar): + if daftar[i - 1] <= daftar[i]: + i += 1 + else: + # tukar elemen jika tidak dalam urutan yang bener + daftar[i - 1], daftar[i] = daftar[i], daftar[i - 1] + i -= 1 + if i == 0: + i = 1 + return daftar + + +if __name__ == "__main__": + import doctest + + doctest.testmod(verbose=True) diff --git a/algorithm/sorting/merge_sort.py b/algorithm/sorting/merge_sort.py new file mode 100644 index 00000000..d78aa165 --- /dev/null +++ b/algorithm/sorting/merge_sort.py @@ -0,0 +1,56 @@ +from __future__ import annotations + + +def merge_sort(data: list) -> list: + """ + merge sort adalah algoritma sorting data yang yang bekerja + dengan bekerja dengan membagi data menjadi dua bagian secara + rekursif, megnrutukan kedua bagian secara terpisah, lalu + menggabungkan kembali dua bagian tersebut dengan urutan + yang benar + + referensi: + https://en.wikipedia.org/wiki/Merge_sort + + Args: + data (list): beberapa data yang bisa berubah sebanding dengan + item yang sebanding di dalamnya + + Return: + (list): data hasil yang berupa ascending + + Contoh: + >>> merge_sort([0, 6, 3, 2, 1]) + [0, 1, 2, 3, 6] + """ + + def merge(kiri: list, kanan: list) -> list: + """ + gabungkan data kiri dan kanan + + Args: + kiri (list): data list kiri + kanan (kanan): data list kanan + + Return: + (list): data gabungan dari kiri dan kanan + """ + + def _gabung(): + while kiri and kanan: + yield (kiri if kiri[0] <= kanan[0] else kanan).pop(0) + yield from kiri + yield from kanan + + return list(_gabung()) + + if len(data) <= 1: + return data + mid = len(data) // 2 + return merge(merge_sort(data[:mid]), merge_sort(data[mid:])) + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/implementation/artificial_intelligence/linear_regression.py b/implementation/artificial_intelligence/linear_regression.py index 6c67f4ca..4fb43d88 100644 --- a/implementation/artificial_intelligence/linear_regression.py +++ b/implementation/artificial_intelligence/linear_regression.py @@ -7,7 +7,7 @@ # mengatur bobot dari fitur ini, melalui banyak iterasi # sehingga cocok dengan kumpulan data kita. import numpy as np -import request +import requests def collect_dataset(): @@ -16,7 +16,7 @@ def collect_dataset(): kita menggunakan dataset CSGO, dalam konten ini mengandung data ADR vs rating dari player """ - respon = request.get( + respon = requests.get( "https://raw.githubusercontent.com/yashLadha/The_Math_of_Intelligence/" "master/Week1/ADRvsRating.csv" ) @@ -43,8 +43,8 @@ def jalankan_step_gradient_descent(data_x, data_y, panjang_data, alpha, theta): """ n = panjang_data - prod = np.dot(theta, data_x.transpose()) - prod -= data_y.transpose() + prod = np.dot(theta, data_x.T) + prod -= data_y.T sum_grad = np.dot(prod, data_x) theta = theta - (alpha / n) * sum_grad return theta @@ -58,10 +58,10 @@ def jumlah_kesalahan_perhitungan(data_x, data_y, panjang_data, theta): :param len_data: panjang dari dataset :param theta: fitur vector """ - prod = np.dot(theta, data_x.transpose()) - prod -= data_y.transpose() - sum_elem = np.sum(np.square) - error = sum_elem / (2 * panjang_data) + prod = np.dot(theta, data_x.T) + prod -= data_y.T + sum_error = np.sum(np.square(prod)) + error = sum_error / (2 * panjang_data) return error @@ -101,13 +101,13 @@ def main(): data = collect_dataset() panjang_data = data.shape[0] data_x = np.c_[np.ones(panjang_data), data[:, :-1]].astype(float) - data_y = data[:, :-1].astype(float) - + data_y = data[:, -1].astype(float) + print(data_x.shape, data_y.shape) theta = jalankan_linear_regression(data_x, data_y) panjang_hasil = theta.shape[1] print("resultan fitur vector: ") for i in range(0, panjang_hasil): - print(f"{theta[0, i]:5.f}") + print(f"{theta[0, i]:.5f}") if __name__ == "__main__": diff --git a/implementation/artificial_intelligence/logistic_regression.py b/implementation/artificial_intelligence/logistic_regression.py index 7548ea12..b64bcef7 100644 --- a/implementation/artificial_intelligence/logistic_regression.py +++ b/implementation/artificial_intelligence/logistic_regression.py @@ -33,7 +33,9 @@ def fungsi_sigmoid(n): return 1 / (1 + np.exp(-n)) -def logsitik_regresi(alpha, x, y, max_iterasi=70000): +def logsitik_regresi( + alpha: float, x: np.ndarray, y: np.ndarray, max_iterasi: int = 70000 +): theta = np.zeros(x.shape[1]) for iterasi in range(max_iterasi): @@ -58,7 +60,7 @@ def logsitik_regresi(alpha, x, y, max_iterasi=70000): theta = logsitik_regresi(alpha, x, y, max_iterasi=70000) print("theta: ", theta) - def prediksi_probabilitas(n): + def prediksi_probabilitas(x: np.ndarray): return fungsi_sigmoid(np.dot(x, theta)) plt.figure(figsize=(10, 6)) diff --git a/implementation/artificial_intelligence/random_forest.py b/implementation/artificial_intelligence/random_forest.py index 0e5b59e8..34bccd3d 100644 --- a/implementation/artificial_intelligence/random_forest.py +++ b/implementation/artificial_intelligence/random_forest.py @@ -8,7 +8,9 @@ Pendekatan ansambel ini membantu meningkatkan akurasi dan ketahanan model secara keseluruhan. """ + import numpy as np +from typing import Union class DecisionTree: @@ -23,25 +25,25 @@ def __init__(self, max_depth=5, min_samples_leaf=2): self.min_samples_leaf = min_samples_leaf self.tree = {} - def fit(self, X, y): + def fit(self, X: np.ndarray, y: np.ndarray): """ Metode fit membangun pohon keputusan secara rekursif dengan memanggil fungsi build_tree. argumen: - X(__type__) : Nilai numerik array 2D - y(__type__) : Array 1D dari int - kedalaman (_type_):int + X(np.ndarray) : Nilai numerik array 2D + y(np.ndarray) : Array 1D dari int + kedalaman (object):nama objek """ self.tree = self.build_tree(X, y, depth=0) - def build_tree(self, X, y, depth): + def build_tree(self, X: np.ndarray, y: np.ndarray, depth: int): """ Fungsi build_tree secara rekursif membagi data berdasarkan fitur dan nilai terbaik, dengan mempertimbangkan perolehan informasi argumen: - X(__type__) : Nilai numerik array 2D - y(__type__) : Array 1D dari int - kedalaman (_type_):int + X(np.ndarray) : Nilai numerik array 2D + y(np.ndarray) : Array 1D dari int + kedalaman (int):int """ n_samples, n_features = X.shape labels = np.unique(y) @@ -94,13 +96,22 @@ def build_tree(self, X, y, depth): "right": right_tree, } - def information_gain(self, y, left_indices, right_indices): + def information_gain( + self, + y: np.ndarray, + left_indices: Union[np.ndarray, list[int | float]], + right_indices: Union[np.ndarray, list[int | float]], + ): """ Fungsi information_gain menghitung perolehan informasi untuk pembagian tertentu. Args: - y (_type_):1D array of int - left_indices (_type_): int - right_indices (_type_): int + y (np.ndarray):1D array of int + left_indices (np.ndarray or list[int|float]): Indeks-indeks data + yang termasuk dalam + kelompok kiri + right_indices (np.ndarray or list[int|float]): Indeks-indeks data + yang termasuk dalam + kelompok kanan """ parent_entropy = self.calculate_entropy(y) left_entropy = self.calculate_entropy(y[left_indices]) @@ -115,7 +126,7 @@ def information_gain(self, y, left_indices, right_indices): ) return gain - def calculate_entropy(self, y): + def calculate_entropy(self, y: np.ndarray): """ fungsi count_entropy menghitung entropi dari sekumpulan label. argumen: @@ -129,7 +140,7 @@ def calculate_entropy(self, y): # Metode prediksi memprediksi label untuk sekumpulan sampel input. # Dengan memanggil fungsi predict_sample untuk setiap sampel. - def prediksi(self, X): + def prediksi(self, X: np.ndarray): """ Metode memprediksi label untuk satu set sampel input. Dengan memanggil fungsi predict_sample untuk setiap sampel. @@ -141,15 +152,15 @@ def prediksi(self, X): """ return np.array([self.predict_sample(x) for x in X]) - def predict_sample(self, x): + def predict_sample(self, x: np.ndarray): """ Fungsi predict_sample menelusuri pohon keputusan untuk menentukan prediksi label untuk masukan satu sampel. argumen: - x (_type_): larik 2D dari nilai numerik + x (np.ndarray): larik 2D dari nilai numerik Pengembalian: - _type_: kembalikan label(int) + int: kembalikan label(int) """ node = self.tree while "label" not in node: @@ -175,13 +186,13 @@ def __init__(self, num_trees=10, max_depth=5, min_samples_leaf=2): self.min_samples_leaf = min_samples_leaf self.trees = [] - def fit(self, X, y): + def fit(self, X: np.ndarray, y: np.ndarray): """ #Metode fit melatih hutan acak dengan membuat pohon keputusan num_trees dan # menyesuaikannya pada himpunan bagian acak dari data. argumen: - X(__type__) : Nilai numerik array 2D - y(__type__) : Array 1D dari int + X(np.ndarray) : Nilai numerik array 2D + y(np.ndarray) : Array 1D dari int """ for _ in range(self.num_trees): tree = DecisionTree( @@ -191,14 +202,14 @@ def fit(self, X, y): tree.fit(X[indices], y[indices]) self.trees.append(tree) - def prediksi(self, X): + def prediksi(self, X: np.ndarray): """Metode prediksi membuat prediksi untuk sekumpulan sampel input dengan menggabungkan prediksi dari setiap pohon dan mengambil suara mayoritas. argumen: - X (_type_): Nilai numerik larik 2D + X (np.ndarray): Nilai numerik larik 2D Pengembalian: - _type_: Larik label 1D (int) + np.array: Larik label 1D (int) """ predictions = np.zeros((len(X), len(self.trees))) for i, tree in enumerate(self.trees): diff --git a/implementation/artificial_intelligence/similarity_searching.py b/implementation/artificial_intelligence/similarity_searching.py new file mode 100644 index 00000000..326f1043 --- /dev/null +++ b/implementation/artificial_intelligence/similarity_searching.py @@ -0,0 +1,126 @@ +from __future__ import annotations +import math +import numpy as np +from numpy.linalg import norm + + +def euclidean(input_a: np.ndarray, input_b: np.ndarray) -> float: + """ + menghitung jarak euclidean antara dua data + + Args: + input_a (np.ndarray): array dari vektor pertama + input_b (np.ndarray): array dari vektor kedua + + Return: + (float) : jarak euclidean antara input_a dan input_b + dengan menggunakan math.sqrt() + + Contoh: + + >>> euclidean(np.array([0]), np.array([1])) + 1.0 + """ + return math.sqrt(sum(pow(a - b, 2) for a, b in zip(input_a, input_b))) + + +def similar_search( + dataset: np.ndarray, value_array: np.ndarray +) -> list[list[float] | float]: + """ + similiar search atau pencarian kemiripan adalah teknik machine + learning yang digunakan untuk menenumkan dokumen, gambar, + atau data lainnya yang mirip dengan query yang diberikan + + referensi: + https://www.pinecone.io/learn/what-is-similarity-search/ + https://en.wikipedia.org/wiki/Similarity_learning + https://encord.com/blog/vector-similarity-search/ + + Args: + dataset (np.ndarray): kumpulan vektor-vektor + value_array (np.ndarray): vektor yang ingin kita ketahui vektor + terdekat dari dataset + + Return: + berupa sebuah daftar yang berisi vektor terdekat, jarak dari + vektor-vektor tersebut + + Contoh: + + >>> dataset = np.array([[0], [1], [2]]) + >>> value_array = np.array([[0]]) + >>> similar_search(dataset, value_array) + [[[0], 0.0]] + + >>> dataset = np.array([[0, 0, 0], [1, 1, 1], [2, 2, 2]]) + >>> value_array = np.array([[0, 0, 0], [0, 0, 1]]) + >>> similar_search(dataset, value_array) + [[[0, 0, 0], 0.0], [[0, 0, 0], 1.0]] + """ + if dataset.ndim != value_array.ndim: + pesan = ( + f"dimensi data input salah, dataset: {dataset.ndim} : " + f"{value_array.ndim}" + ) + raise ValueError(pesan) + + try: + if dataset.shape[1] != value_array.shape[1]: + pesan = ( + f"bentuk data input salah, dataset {dataset.shape[1]}, " + f"value_array: {value_array.shape[1]}" + ) + raise ValueError(pesan) + except IndexError as index_error: + if dataset.ndim != value_array.ndim: + print(index_error) + raise TypeError("bentuk salah...") + + if dataset.dtype != value_array.dtype: + pesan = ( + f"tipe data input berbeda, dataset: {dataset.dtype}," + f"value_array: {value_array.dtype}" + ) + raise TypeError(pesan) + + answer: list = [] + + for value in value_array: + dist = euclidean(value, dataset[0]) + vector = dataset[0].tolist() + + for dataset_value in dataset[1:]: + temp_dist = euclidean(value, dataset_value) + if dist > temp_dist: + dist = temp_dist + vector = dataset_value.tolist() + answer.append([vector, dist]) + + return answer + + +def cosine_similarity(input_a: np.ndarray, input_b: np.ndarray) -> float: + """ + menghitung kesamaan kosinus antara dua data + + Args: + input_a (np.ndarray): array dari vektor pertama + input_b (np.ndarray): array dari vektor kedua + + Return: + (float) : kesamaan kosinus input_a dan input_b. dengan menggunakan + math.sqrt() + """ + return np.dot(input_a, input_b) / (norm(input_a) * norm(input_b)) + + +if __name__ == "__main__": + import doctest + + # dataset = np.array([[0], [1], [2]]) + # value_array = np.array([[0]]) + # result = similar_search(dataset, value_array) + # print(result) + + doctest.testmod() diff --git a/implementation/chiper/hill_chiper.py b/implementation/chiper/hill_chiper.py index f04250ea..e2a33f23 100644 --- a/implementation/chiper/hill_chiper.py +++ b/implementation/chiper/hill_chiper.py @@ -19,6 +19,7 @@ panjang teks mencapai kelipatan dari break_key. Jadi teks setelah dekripsi mungkin sedikit berbeda dari teks aslinya. """ + import string import numpy diff --git a/implementation/file_transfer/receive_file.py b/implementation/file_transfer/receive_file.py index ad569804..74460856 100644 --- a/implementation/file_transfer/receive_file.py +++ b/implementation/file_transfer/receive_file.py @@ -13,7 +13,7 @@ print("menerima data") while True: data = sock.recv(1024) - print(f"{data = }") + print(f"{data}") if not data: break out_file.write(data) diff --git a/implementation/file_transfer/send_file.py b/implementation/file_transfer/send_file.py index 1d20b893..394d89b9 100644 --- a/implementation/file_transfer/send_file.py +++ b/implementation/file_transfer/send_file.py @@ -14,7 +14,7 @@ def send_file(filename: str = "textfile.txt", testing: bool = False) -> None: conn, addr = sock.accept() print(f"terkoneksi.. ke {addr}") data = conn.recv(1024) - print(f"diterima .. {data = }") + print(f"diterima .. {data}") with open(filename, "rb") as in_file: data = in_file.read(1024) diff --git a/implementation/image_processing/data_image/README.txt b/implementation/image_processing/data_image/README.txt new file mode 100644 index 00000000..46ca8d2e --- /dev/null +++ b/implementation/image_processing/data_image/README.txt @@ -0,0 +1,9 @@ +[INFORMASI] + +Sumber Gambar Dari Dylann Hendricks yang berjudul "a stone staircase leading up to a building" + +Source dari gambar dan pemilik gambar bisa dilihat dibawah ini + +Gambar: https://unsplash.com/photos/a-stone-staircase-leading-up-to-a-building-oaoZXg5GAm8 + +User: https://unsplash.com/@dylanhendricks diff --git a/implementation/image_processing/data_image/__init__.py b/implementation/image_processing/data_image/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/implementation/image_processing/data_image/example_image.jpg b/implementation/image_processing/data_image/example_image.jpg new file mode 100644 index 00000000..30afcbc0 Binary files /dev/null and b/implementation/image_processing/data_image/example_image.jpg differ diff --git a/implementation/image_processing/gambar_sepia.py b/implementation/image_processing/gambar_sepia.py new file mode 100644 index 00000000..092c9084 --- /dev/null +++ b/implementation/image_processing/gambar_sepia.py @@ -0,0 +1,78 @@ +import numpy as np +from cv2 import destroyAllWindows, imread, imshow, waitKey + + +def gambar_sepia(img, skala: int) -> np.ndarray: + """ + sepia adalah nuansa warna tua yang terbentuk dari campuran warna coklat dan + abu-abu. nama "Sepia" berasal dari tinta berwarna coklat yang ditemukan + dalam cumi-cumi jenis sepia + + Args: + img (np.ndarray): gambar masukkan, representasi dari numpy array + skala (int): skala sepia yang diterapkan. skala lebih tinggi akan + menghasilkan efek sepia yang lebih kuat. + + Return: + (np.ndarray) : gambar dengan efek sepia yang dihasilkan dalam bentuk + array numpy + """ + piksel_h, piksel_v = img.shape[0], img.shape[1] + + def ke_grayscale(biru: int, hijau: int, merah: int) -> float: + """ + fungsi untuk menciptkan representasi grayscale dari piksel + + Args: + biru (int): nilai warna dari biru 0 - 255 + hijau (int): nilai warna dari hijau 0 - 255 + merah (int): nilai warna dari merah 0 - 255 + + Return: + (float): representasi grayscale dari piksel + """ + return 0.2126 * merah + 0.587 * hijau + 0.114 * biru + + def normalisasi_nilai_warna(nilai: int) -> int: + """ + fungsi untuk normalisasi nilai warna dari merah hijau biru + jika nilai tersebut lebih dari 255 + + Args: + nilai (int): nilai yang diberikan + + Return: + (int): mengembalikan nilai minimal dari 255 + """ + return min(nilai, 255) + + for i in range(piksel_h): + for j in range(piksel_v): + grayscale = int(ke_grayscale(*img[i][j])) + img[i][j] = [ + normalisasi_nilai_warna(grayscale), + normalisasi_nilai_warna(grayscale + skala), + normalisasi_nilai_warna(grayscale + 2 * skala), + ] + + return img + + +if __name__ == "__main__": + import doctest + + doctest.testmod() + + gambar = { + presentasi: imread("data_image/example_image.jpg", 1) + for presentasi in (10, 20, 30, 40) + } + + for presentasi, img in gambar.items(): + gambar_sepia(img, presentasi) + + for presentasi, img in gambar.items(): + imshow(f"gambar asli dari sepia (skala: {presentasi})", img) + + waitKey(0) + destroyAllWindows() diff --git a/implementation/linear_algebra/Faktorisasi_LU.py b/implementation/linear_algebra/Faktorisasi_LU.py new file mode 100644 index 00000000..c219e35d --- /dev/null +++ b/implementation/linear_algebra/Faktorisasi_LU.py @@ -0,0 +1,41 @@ +# https://en.wikipedia.org/wiki/LU_decomposition#Algorithms + +from typing import Union + + +def LU(A: list[list[Union[int, float]]]) -> list[list[Union[int, float]]]: + """ + >>> A = [[2, 3, 1], [4, 7, 7], [-2, 4, 5]] + >>> L, U = LU(A) + >>> L + [[1, 0, 0], [2.0, 1, 0], [-1.0, 7.0, 1]] + >>> U + [[2, 3, 1], [0.0, 1.0, 5.0], [0.0, 0.0, -29.0]] + """ + n = len(A) + L = [[1 if i == j else 0 for j in range(n)] for i in range(n)] + U = [[A[i][j] for j in range(n)] for i in range(n)] + + for k in range(n - 1): + if U[k][k] == 0: + + raise ValueError("Faktorisasi LU tidak ada") + for i in range(k + 1, n): + L[i][k] = U[i][k] / U[k][k] + for j in range(k, n): + U[i][j] -= L[i][k] * U[k][j] + return L, U + + +def main(args=None): + import doctest + + doctest.testmod() + A = [[2, 3, 1], [4, 7, 7], [-2, 4, 5]] + L, U = LU(A) + print(L) + print(U) + + +if __name__ == "__main__": + main() diff --git a/implementation/linear_algebra/LDLT_decomposition.py b/implementation/linear_algebra/LDLT_decomposition.py new file mode 100644 index 00000000..92a9131c --- /dev/null +++ b/implementation/linear_algebra/LDLT_decomposition.py @@ -0,0 +1,52 @@ +# https://en.wikipedia.org/wiki/Cholesky_decomposition#LDL_decomposition + + +def transpose(x: list[list[int]]) -> list[list[int]]: + """ + >>> transpose([[1, 2], [3, 4]]) + [[1, 3], [2, 4]] + """ + x = [[x[j][i] for j in range(len(x))] for i in range(len(x[0]))] + return x + + +def LDLT_decomposition(x: list[list[int]]) -> list[list[int]]: + """ + >>> L, D, Lt = LDLT_decomposition([[2, 4, 6], [4, 9, 14], [6, 14, 19]]) + >>> L + [[1, 0, 0], [2.0, 1, 0], [3.0, 2.0, 1]] + >>> D + [2.0, 1.0, -3.0] + >>> Lt + [[1, 2.0, 3.0], [0, 1, 2.0], [0, 0, 1]] + """ + if transpose(x) == x: + n = len(x) + L = [[0 for _ in range(len(x))] for _ in range(len(x))] + d = [0 for _ in range(len(x))] + for i in range(n): + sum_val = 0.0 + for k in range(i): + sum_val += (L[i][k] ** 2) * d[k] + d[i] = x[i][i] - sum_val + + for j in range(i + 1, n): + sum_val = 0.0 + for k in range(i): + sum_val += L[j][k] * L[i][k] * d[k] + L[j][i] = (x[j][i] - sum_val) / d[i] + L[i][i] = 1 + Lt = transpose(L) + return L, d, Lt + else: + return ValueError("Matriks tidak simetri") + + +def main(args=None): + import doctest + + doctest.testmod() + + +if __name__ == "__main__": + main() diff --git a/implementation/linear_algebra/LU_decomposition.py b/implementation/linear_algebra/LU_decomposition.py new file mode 100644 index 00000000..c5d141a7 --- /dev/null +++ b/implementation/linear_algebra/LU_decomposition.py @@ -0,0 +1,42 @@ +# https://en.wikipedia.org/wiki/LU_decomposition#Algorithms +from typing import Union + + +def LU(A: list[list[Union[int, float]]]) -> list[list[Union[int, float]]]: + """ + >>> A = [[2, 3, 1], [4, 7, 7], [-2, 4, 5]] + >>> L, U = LU(A) + >>> L + [[1, 0, 0], [2.0, 1, 0], [-1.0, 7.0, 1]] + >>> U + [[2, 3, 1], [0.0, 1.0, 5.0], [0.0, 0.0, -29.0]] + """ + n = len(A) + L = [[1 if i == j else 0 for j in range(n)] for i in range(n)] + U = [[A[i][j] for j in range(n)] for i in range(n)] + + for k in range(n - 1): + if U[k][k] == 0: + raise ValueError("Faktorisasi LU tidak ada") + for i in range(k + 1, n): + L[i][k] = U[i][k] / U[k][k] + for j in range(k, n): + U[i][j] -= L[i][k] * U[k][j] + return L, U + + +def main(args=None): + import doctest + + doctest.testmod() + A = [[2, 3, 1], [4, 7, 7], [-2, 4, 5]] + L, U = LU(A) + for row in L: + print(row) + print("\n") + for row in U: + print(row) + + +if __name__ == "__main__": + main() diff --git a/implementation/linear_algebra/operasi_matriks.py b/implementation/linear_algebra/operasi_matriks.py new file mode 100644 index 00000000..40b7b443 --- /dev/null +++ b/implementation/linear_algebra/operasi_matriks.py @@ -0,0 +1,123 @@ +# macam - macam operasi matriks +from typing import Union + + +def penjumlahan( + matriks_1: list[list[Union[int, float]]], matriks_2: list[list[Union[int, float]]] +) -> list[list[Union[int, float]]]: + """ + Fungsi untuk melakukan penjumlahan 2 matrriks + + >>> penjumlahan([[2, 3], [3, 4]], [[3, 2], [2, 1]]) + [[5, 5], [5, 5]] + """ + if len(matriks_1) != len(matriks_2): + return ValueError("Ukuran Matriks Harus Sama") + else: + result = [] + n = len(matriks_1) + for i in range(n): + row = [] + for j in range(n): + operation = matriks_1[i][j] + matriks_2[i][j] + row.append(operation) + result.append(row) + return result + + +def pengurangan( + matriks_1: list[list[Union[int, float]]], matriks_2: list[list[Union[int, float]]] +) -> list[list[Union[int, float]]]: + """ + Fungsi untuk melakukan kalkulasi pengurangan matriks + + >>> pengurangan([[3, 3], [3, 3]], [[2, 1], [2, 1]]) + [[1, 2], [1, 2]] + """ + if len(matriks_1) != len(matriks_2): + return ValueError("Ukuran Matriks Sama") + else: + result = [] + n = len(matriks_1) + for i in range(n): + row = [] + for j in range(n): + operation = matriks_1[i][j] - matriks_2[i][j] + row.append(operation) + result.append(row) + return result + + +def perkalian( + matriks_1: list[list[Union[int, float]]], matriks_2: list[list[Union[int, float]]] +) -> list[list[Union[int, float]]]: + """ + Fungsi untuk melakukan kalkulasi perkalian matriks + + >>> perkalian([[1, 2], [3, 4]], [[5, 6], [7, 8]]) + [[19, 22], [43, 50]] + """ + baris1 = len(matriks_1) + kolom1 = len(matriks_1[0]) + baris2 = len(matriks_2) + kolom2 = len(matriks_2[0]) + if kolom1 != baris2: + return ValueError("Ukuran baris dan kolom mesti sama") + + result = [[0 for _ in range(kolom2)] for _ in range(baris1)] + for i in range(baris1): + for j in range(kolom2): + for k in range(kolom1): + result[i][j] += matriks_1[i][k] * matriks_2[k][j] + return result + + +def perkalian_skalar_matriks( + matriks: list[list[Union[int, float]]], x: int +) -> list[list[Union[int, float]]]: + """ + Fungsi untuk kalkulasi skalar dan matriks + + >>> perkalian_skalar_matriks([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 2) + [[2, 4, 6], [8, 10, 12], [14, 16, 18]] + """ + result = [] + n = len(matriks) + for i in range(n): + row = [] + for j in range(n): + multi = x * matriks[i][j] + row.append(multi) + result.append(row) + return result + + +def matriks_identitas(n: int) -> list[list[int]]: + """ + Funsi untuk menghasilkan matriks identitas + + >>> matriks_identitas(2) + [[1, 0], [0, 1]] + >>> matriks_identitas(3) + [[1, 0, 0], [0, 1, 0], [0, 0, 1]] + """ + if n < 0: + return ValueError("ukuran harus positif") + else: + return [[1 if j == i else 0 for j in range(int(n))] for i in range(int(n))] + + +def main(args=None): + import doctest + + print(penjumlahan([[2, 3], [3, 4]], [[3, 2], [2, 1]])) + print(pengurangan([[3, 3], [3, 3]], [[2, 1], [2, 1]])) + print(perkalian([[1, 2], [3, 4]], [[5, 6], [7, 8]])) + print(perkalian_skalar_matriks([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 2)) + print(matriks_identitas(3)) + + doctest.testmod() + + +if __name__ == "__main__": + main() diff --git a/implementation/physics/n_body_simulation.py b/implementation/physics/n_body_simulation.py index 43d3de8e..a6426045 100644 --- a/implementation/physics/n_body_simulation.py +++ b/implementation/physics/n_body_simulation.py @@ -131,9 +131,7 @@ def update_system(self, delta_time: float) -> None: dif_x = body2.position_x - body1.position_x dif_y = body2.position_y - body1.position_y - distance = (dif_x**2 + dif_y**2 + self.softening_factor) ** ( - 1 / 2 - ) + distance = (dif_x**2 + dif_y**2 + self.softening_factor) ** (1 / 2) force_x += ( self.gravitation_constant * body2.mass * dif_x / distance**3 ) diff --git a/implementation/physics/pendulum.py b/implementation/physics/pendulum.py new file mode 100644 index 00000000..ec465cb9 --- /dev/null +++ b/implementation/physics/pendulum.py @@ -0,0 +1,100 @@ +# https://en.wikipedia.org/wiki/Pendulum +import numpy as np +import matplotlib.pyplot as plt +from matplotlib.animation import FuncAnimation + + +def parameter(g=9.8, L=1.0, a=float, b=float) -> float: + time_step = a / b + time_stap = np.linspace(0, a, b) + return g, L, time_step, time_stap + + +def full_pendulum(g, L, theta, theta_velocity, time_step): + """ + fungsi untuk menghitung persamaan pendulum. + """ + theta_acceleration = -(g / L) * np.sin(theta) + theta_velocity += time_step * theta_acceleration + theta += time_step * theta_velocity + return theta, theta_velocity + + +def calculate_pendulum() -> float: + """ + Melakukan kalkulasi pendulum + """ + theta = [np.radians(90)] + theta_velocity = 0 + + for _ in time_stap: + theta_new, theta_velocity = full_pendulum( + g, L, theta[-1], theta_velocity, time_step + ) + theta.append(theta_new) + + # persamaan proyeksi panjang tali + x = L * np.sin(theta) + y = -L * np.cos(theta) + return x, y + + +def setup_axis(axis) -> None: + """ + Setup sumbu x dan y. + """ + axis.set_xlim(-L - 0.2, L + 0.2) + axis.set_ylim(-L - 0.2, L) + axis.grid() + return axis + + +def create_plot_elements(axis) -> None: + """ + Membuat elemen plot yang akan dianimasu. + """ + (rod_line,) = axis.plot([], [], lw=2) + (mass_point,) = axis.plot([], [], marker="o", markersize=10) + (trace,) = axis.plot([], [], "-", lw=1, alpha=0.6) + return rod_line, mass_point, trace + + +def animate(frame, x, y, rod_line, mass_point, trace) -> None: + """ + Fungsi ini berguna untuk mengambil setiap hasil hitungan + dan menjadikan setiap hitungan frame. + """ + rod_line.set_data([0, x[frame]], [0, y[frame]]) + mass_point.set_data([x[frame]], [y[frame]]) + trace.set_data(x[:frame], y[:frame]) + return rod_line, mass_point, trace + + +if __name__ == "__main__": + g, L, time_step, time_stap = parameter(a=20, b=300) + x, y = calculate_pendulum() + fig, axis = plt.subplots() + axis = setup_axis(axis) + rod_line, mass_point, trace = create_plot_elements(axis) + + def init(): + """ + Parameter awal. + """ + rod_line.set_data([], []) + mass_point.set_data([], []) + trace.set_data([], []) + return rod_line, mass_point, trace + + animation = FuncAnimation( + fig=fig, + func=animate, + fargs=(x, y, rod_line, mass_point, trace), + init_func=init, + frames=len(time_stap), + interval=25, + blit=True, + ) + + print(animation) + plt.show() diff --git a/math/convolution.py b/math/convolution.py new file mode 100644 index 00000000..5c42e130 --- /dev/null +++ b/math/convolution.py @@ -0,0 +1,23 @@ +import numpy as np + + +def simple_convolution(arr1: np.array, arr2: np.array): + """ + fungsi merupakan calculasi dari rumus sederhana + dari convolution + Args: + arr1 (np.array): Inputan berupa array 1 dimensi + arr2 (np.array): Inputan berupa array 1 dimensi + """ + m, n = arr1.shape[0], arr2.shape[0] + + # indenfikasi kalau ukuran array input harus sama + if m != n: + raise ValueError("Dimensi array harus sama") + + # kalkulasi tersebut + result = np.zeros(m + n - 1) + for i in range(m): + for j in range(n): + result[i + j] += arr1[i] * arr2[j] + return result diff --git a/math/cos.py b/math/cos.py new file mode 100644 index 00000000..91e38c58 --- /dev/null +++ b/math/cos.py @@ -0,0 +1,56 @@ +# Menghitung cosisnus dengan menggunakan deret taylor +# https://en.wikipedia.org/wiki/Taylor_series#Trigonometric_functions +import math + + +def factorial(x) -> int: + if x < 0: + return ValueError("Angkanya harus bilangan real") + if x == 0 or x == 1: + return 1 + else: + return x * (factorial(x - 1)) + + +def cosinus(sudut) -> float: + """ + Cosinus adalah sebuah perbandingan dari sisi samping dan + miring segitiga siku-siku. + + >>> cosinus(0) + 1.0 + >>> cosinus(30) + 0.8660254037844386 + >>> cosinus(45) + 0.7071067811865475 + >>> cosinus(60) + 0.5000000000000001 + >>> cosinus(90) + -3.3769215522516056e-15 + """ + result = 0.0 + interable = 10 + radian = sudut * math.pi / 180 + for i in range(interable): + numerator = math.pow(radian, 2 * i) * math.pow(-1, i) + detector = factorial(2 * i) + result = result + (numerator / detector) + + return float(result) + + +def main(args=None): + import doctest + + doctest.testmod() + + # base case + print(cosinus(0)) # 1.0 + print(cosinus(30)) # 0.8660254037844386 + print(cosinus(45)) # 0.7071067811865475 + print(cosinus(60)) # 0.5000000000000001 + print(cosinus(90)) # -3.3769215522516056e-15 + + +if __name__ == "__main__": + main() diff --git a/math/deret_taylor.py b/math/deret_taylor.py new file mode 100644 index 00000000..2cf30a4d --- /dev/null +++ b/math/deret_taylor.py @@ -0,0 +1,124 @@ +# macam - macam deret taylor +# https://en.wikipedia.org/wiki/Taylor_series +import math + + +def faktorial(n: int) -> int: + """ + Fungsi untuk kalkulasi faktorial + parameter : + n = bilangan bulat + return : + hasil = hasil dari operasi faktorial + """ + if n == 1 or n == 0: + return 1 + if n > 1: + return n * faktorial(n - 1) + else: + return ValueError("Nilai Tidak valid") + + +def sin(x: float) -> float: + """ + Fungsi untuk kalkulasi dari deret sin. + Input dari fungsi ini dikonvergensi menjadi + radian. + >>> sin(0) + 0.0 + >>> sin(45) + 0.7071067811865475 + """ + result = 0.0 + interable = 10 + radian = x * math.pi / 180 + for i in range(interable + 1): + numerator = math.pow(radian, (1 + i * 2)) * math.pow(-1, i) + detector = faktorial((1 + 2 * i)) + result = result + (numerator / detector) + return float(result) + + +def cos(x: float) -> float: + """ + Fungsi untuk kalkulasi dari deret cosinus. + Input dari fungsi ini dikonvergensi menjadi + radian. + >>> cos(0) + 1.0 + >>> cos(45) + 0.7071067811865475 + """ + result = 0.0 + interable = 10 + radian = x * math.pi / 180 + for i in range(interable): + numerator = math.pow(radian, 2 * i) * math.pow(-1, i) + detector = faktorial(2 * i) + result = result + (numerator / detector) + return float(result) + + +def euler(x: int = 1) -> float: + """ + Fungsi untuk kalkulasi dari deret + taylor euler e^x + >>> euler(1) + 2.7182815255731922 + >>> euler(2) + 7.3887125220458545 + """ + result = 0.0 + interable = 10 + for i in range(interable): + numerator = math.pow(x, (i)) + detector = faktorial(i) + result = result + (numerator / detector) + return float(result) + + +def ln(x: float) -> float: + """ + Fungsi untuk melakukan kalkulasi deret taylor + ln(x + 1).Dengan batas -1 < x <= 1. + >>> ln(0.5) + 0.4054346478174603 + >>> ln(1) + 0.6456349206349207 + """ + if x > -1 and x <= 1: + result = 0.0 + interable = 10 + for i in range(1, interable + 1): + numerator = math.pow(x, i) * math.pow(-1, i + 1) + detector = i + result = result + (numerator / detector) + return float(result) + else: + return ValueError("Angka tidak valid") + + +def main(args=None): + import doctest + + doctest.testmod() + + # test untuk fungsi cos + print(cos(0)) + print(cos(45)) + + # test untuk fungsi sin + print(sin(0)) + print(sin(45)) + + # test untuk fungsi euler + print(euler(1)) + print(euler(2)) + + # test untuk fungsi ln(1 + x) + print(ln(0.5)) + print(ln(1)) + + +if __name__ == "__main__": + main() diff --git a/math/exponential_function.py b/math/exponential_function.py new file mode 100644 index 00000000..0c63cfee --- /dev/null +++ b/math/exponential_function.py @@ -0,0 +1,29 @@ +from math import factorial + + +def exponent(x: int | float): + """_summary_ + + Args: + x (_type_): _description_ + + Returns: + _type_: _description_ + Contoh: + >>> exponent(2) + 7.38905609893 + >>> exponent(1) + 2.71828182846 + """ + n_term: int = 100 + result: float = 0.0 + for n in range(n_term): + result += x**n / factorial(n) + + return round(result, 11) + + +if __name__ == "__main__": + import doctest + + doctest.testmod(verbose=True) diff --git a/math/faktorial_looping.py b/math/faktorial_looping.py new file mode 100644 index 00000000..5e481578 --- /dev/null +++ b/math/faktorial_looping.py @@ -0,0 +1,46 @@ +def faktorial_looping(angka: int) -> int: + """ + Faktorial adalah hasil perkalian dari semua bilangan positif yang dimulai + dari 1 hingga bilangan tersebut, notasi dalam faktorial dilambangan dengan + exclamation `angka!` / `n!` / `number!` + + pendekatan perhitungan ini menggunakan metode looping, salah satunya dengan + menggunakan looping `for` statement. + + sebagai contoh: + + 5 x 4 x 3 x 2 x 1 = 120, jika nilai yang diberikan nol maka hasilnya adalah 1 + + Parameter: + angka (int): nilai yang dikalkulasi faktorialnya + + Return: + int: hasil nilai yang akan diberikan dari `angka!` + + Contoh: + >>> faktorial(5) + 120 + >>> faktorial(2) + 2 + >>> faktorial(10) + 3628800 + """ + if not isinstance(angka, int): + raise TypeError("fungsi faktorial() hanya bekerja dengan tipe data integer") + + if angka < 0: + raise ValueError("parameter angka tidak boleh negatif") + + nilai: int = 1 + for i in range(1, angka + 1): + nilai *= i + return nilai + + +if __name__ == "__main__": + import doctest + + doctest.testmod() + + angka: int = 3 + print(f"faktorial dari {angka} adalah: {faktorial_looping(3)}") diff --git a/math/faktorial_rekursif.py b/math/faktorial_rekursif.py new file mode 100644 index 00000000..5c9ad028 --- /dev/null +++ b/math/faktorial_rekursif.py @@ -0,0 +1,43 @@ +def faktorial_rekursif(angka: int) -> int: + """ + Faktorial adalah hasil perkalian dari semua bilangan positif yang dimulai + dari 1 hingga bilangan tersebut, notasi dalam faktorial dilambangan dengan + exclamation `angka!` / `n!` / `number!` + + pendekatan perhitungan ini menggunakan pendekatan rekursif, dengan memanggil + fungsinya sendiri hingga mencapai base casenya. + + sebagai contoh: + + 5 x 4 x 3 x 2 x 1 = 120, jika nilai yang diberikan nol maka hasilnya adalah 1 + + Parameter: + angka (int): nilai yang dikalkulasi faktorialnya + + Return: + int: hasil nilai yang akan diberikan dari `angka!` + + Contoh: + >>> faktorial(5) + 120 + >>> faktorial(2) + 2 + >>> faktorial(10) + 3628800 + """ + if not isinstance(angka, int): + raise TypeError("fungsi faktorial() hanya bekerja dengan tipe data integer") + + if angka < 0: + raise ValueError("parameter angka tidak boleh negatif") + + return 1 if angka in {0, 1} else angka * faktorial_rekursif(angka - 1) + + +if __name__ == "__main__": + import doctest + + doctest.testmod() + + angka: int = 3 + print(f"faktorial dari {angka} adalah: {faktorial_rekursif(3)}") diff --git a/math/fft.py b/math/fft.py new file mode 100644 index 00000000..0b86e9df --- /dev/null +++ b/math/fft.py @@ -0,0 +1,33 @@ +import cmath +import numpy as np + + +def fft(A): + """ + Fungsi untuk kalkulasi Fast Fourier Transform + + >>> y = [i for i in range(1, 10)] + >>> fft(y) + array([45. -0.j , 3.27090469+9.43955428j, + 4.30540729+3.93923101j, 4.77196636+1.65987555j, + 5. +0.j , 4.25695936-1.83110215j, + 5.69459271-3.93923101j, 7.70016959-9.26832768j, + 0. +0.j ]) + """ + N = len(A) + if N == 1: + return A + odd = fft(A[1::2]) + even = fft(A[::2]) + res = [0] * N + for i in range(N // 2): + W = cmath.exp(-1j * 2 * cmath.pi * i / N) + res[i] = even[i] + W * odd[i] + res[i + N // 2] = even[i] - W * odd[i] + return np.array(res) + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/math/fungsi_gamma.py b/math/fungsi_gamma.py new file mode 100644 index 00000000..51b10a67 --- /dev/null +++ b/math/fungsi_gamma.py @@ -0,0 +1,63 @@ +import math + + +def fungsi_gamma(nilai: float) -> float: + """ + Hitung nilai fungsi gamma untuk `nilai` + fungsi ini hanya mengdukung bilangan bulat seperti + (1, 2, 3, 4 ... n) atau nilai pecahan, berkoma + (0.1, 2.5, 3.4, 3.3 ... n) + + informasi relevan tentang fungsi gamma: + - https://en.wikipedia.org/wiki/Gamma_function + - https://mathworld.wolfram.com/GammaFunction.html + + Parameter: + nilai(float): nilai yang diberikan + + Return: + (float): hasil kalkulasi fungsi gamma + + Contoh: + >>> fungsi_gamma(0.5) + 1.7724538509055159 + >>> hitung_gamma(1) + 1.0 + >>> hitung_gamma(3.5) + 3.3233509704478426 + """ + # memastikan nilai tidak kurang atau sama dengan 0 + # atau negatif + if nilai <= 0: + raise ValueError("nilai harus lebih besar dari nol") + + # membuat batasan maks dari nilai yang diberikan + # fungsi logika ini hanya bersifat opsional + if nilai > 175.5: + raise OverflowError("nilai rentang terlalu besar") + + # memastikan nilai adalh bilangan bulat atau pecahan + if nilai - int(nilai) not in (0, 0.5): + raise NotImplementedError("nilai harus bilangan bulat atau berkoma") + + # buat basis rekursi dari gamma gamma(0.5) = sqrt(pi) + if nilai == 0.5: + return math.sqrt(math.pi) + + # buat basis rekursi jika gamma(1) = 1 + if nilai == 1: + return 1.0 + + return (nilai - 1) * fungsi_gamma(nilai - 1) + + +if __name__ == "__main__": + import doctest + + doctest.testmod() + + # contoh pemanggilan + # print(fungsi_gamma(1)) + + # nilai: float = 2.5 + # print(f"hasil fungsi_gamma({nilai}) adalah: {fungsi_gamma(nilai)}") diff --git a/math/kombinasi_permutasi.py b/math/kombinasi_permutasi.py new file mode 100644 index 00000000..9a289d8d --- /dev/null +++ b/math/kombinasi_permutasi.py @@ -0,0 +1,58 @@ +# https://en.wikipedia.org/wiki/Combination +# https://en.wikipedia.org/wiki/Permutation + + +def faktorial(n: int) -> int: + """ + Fungsi untuk menghitung faktorial + + >>> faktorial(5) + 120 + """ + if n <= 0: + return ValueError("Nilai tidak boleh kurang dari nol") + else: + f = 1 + for i in range(1, n + 1): + f *= i + return f + + +def kombinasi(n: int, r: int) -> int: + """ + Fungsi untuk kalkulasi kombinasi + + >>> kombinasi(5, 2) + 10.0 + """ + if n <= 0 or r <= 0: + return ValueError("Nilai tidak boleh kurang dari nol") + else: + penyebut = faktorial(n) + pembilang = faktorial(r) * faktorial(n - r) + return penyebut / pembilang + + +def permutasi(n: int, r: int) -> int: + """ + Fungsi untuk kalkulasi permutasi + + >>> permutasi(6, 2) + 30.0 + """ + if n <= 0 or r <= 0: + return ValueError("Nilai tidak boleh kurang dari nol") + else: + penyebut = faktorial(n) + pembilang = faktorial(n - r) + return penyebut / pembilang + + +def main(args=None): + import doctest + + doctest.testmod() + + +if __name__ == "__main__": + main() diff --git a/math/pascal_triangle.py b/math/pascal_triangle.py index 4da314dd..465af9b7 100644 --- a/math/pascal_triangle.py +++ b/math/pascal_triangle.py @@ -26,6 +26,25 @@ def PascalTriangle(n: int) -> list[list[int]]: return result +def pascal_matriks(n: int) -> list[list[int]]: + """ + Fungsi untuk membuata matriks segitiga pascal + + >>> print(pascal_matriks(3)) + [[1, 0, 0], [1, 1, 0], [1, 2, 1]] + >>> print(pascal_matriks(4)) + [[1, 0, 0, 0], [1, 1, 0, 0], [1, 2, 1, 0], [1, 3, 3, 1]] + """ + result = [[0 for _ in range(n)] for _ in range(n)] + for i in range(n): + for j in range(i + 1): + if j == 0 or j == i: + result[i][j] = 1 + else: + result[i][j] = result[i - 1][j - 1] + result[i - 1][j] + return result + + if __name__ == "__main__": import doctest diff --git a/math/rieman_integral.py b/math/rieman_integral.py new file mode 100644 index 00000000..3f6b84ec --- /dev/null +++ b/math/rieman_integral.py @@ -0,0 +1,61 @@ +from typing import Callable +import math + + +def rieman_integral( + fungsiHitung: Callable[[float], float], a: float, b: float, n: int, approx: str +) -> float: + """ + >>> rieman_integral(math.sin,0,math.pi/2,100,"tengah") + 1.0000102809119051 + >>> rieman_integral(math.sin,0,math.pi/2,100,"kanan") + 1.007833419873582 + >>> rieman_integral(math.sin,0,math.pi/2,100,"kiri") + 0.9921254566056331 + """ + delta_x = (b - a) / n + sigma = 0.0 + approx = approx.lower() + + for i in range(n): + left = a + i * delta_x + right = left + delta_x + + if not callable(fungsiHitung): + raise TypeError("Fungsi harus cabble") + if approx == "kiri": + x_i = left + elif approx == "kanan": + x_i = right + elif approx == "tengah": + x_i = left + 0.5 * delta_x + else: + raise ValueError("masukkan approx benar") + + sigma += fungsiHitung(x_i) + + return delta_x * sigma + + +def main(args=None): + import doctest + + doctest.testmod() + + # persamaan x + def f(x): + return x + + print(rieman_integral(f, 0, 1, 1, "tengah")) # 0.5 + + # persamaan 4/(1+x^2) + def g(x): + return (4) / (1 + x**2) + + print(rieman_integral(g, 0, 1, 1000, "tengah")) # 3.1415927369231227 + + print(rieman_integral(math.sin, 0, math.pi / 2, 100, "kiri")) # 0.9921254566056331 + + +if __name__ == "__main__": + main() diff --git a/math/sin.py b/math/sin.py index 58f4ebd0..548472ec 100644 --- a/math/sin.py +++ b/math/sin.py @@ -1,4 +1,6 @@ -from math import pi, e +# Menghitung sinus dengan deret taylor +# https://en.wikipedia.org/wiki/Taylor_series#Trigonometric_functions +import math def factorial(n: int) -> int: @@ -10,29 +12,37 @@ def factorial(n: int) -> int: return n * factorial(n - 1) -def sinus(x: float | int, iterable: int = 4): +def sinus(sudut : float | int, iterable: int = 10): """ Sinus ini merupakan perhitungan dasar yang ada pada teori pythagoras Args: - x (float | int): input ini merupakan value dari sudut yang kita + sudut (float | int): input ini merupakan value dari sudut yang kita inputkan - iterable (int, optional): paramater ini untuk jumlah data yang kuta sum kan - Defaults to 4. Returns: - complex: hasil dari pembagian numerator (complex) dengan denominator + (float): hasil dari pembagian numerator dengan denominator + + >>> sinus(0) + 0.0 + >>> sinus(30) + 0.49999999999999994 + >>> sinus(45) + 0.7071067811865475 + >>> sinus(60) + 0.8660254037844385 + >>> sinus(90) + 1.0 """ - result = 0 + result = 0.0 + radian = sudut * math.pi / 180 for n in range(iterable): - numerator = (e ** (complex(0, pi / 180) * x)) - ( - e ** (-complex(0, pi / 180) * x) - ) + numerator = math.pow(radian, 2 * n + 1) * math.pow(-1, n) denominator = factorial(2 * n + 1) result += numerator / denominator - return result + return float(result) if __name__ == "__main__": - list_sudut = [0, pi / 2, pi * 3 / 4, pi] + list_sudut = [0, 30, 45, 60, 90] for sudut in list_sudut: - print("Sudut:", sudut, "Sin:", sinus(sudut)) + print(f"Sudut : {sudut}, Sin : {sinus(sudut)}") diff --git a/math/two_sum.py b/math/two_sum.py index ec24a23b..325c9924 100644 --- a/math/two_sum.py +++ b/math/two_sum.py @@ -31,4 +31,4 @@ def two_sum(nums: list[int], target: int) -> list[int]: import doctest doctest.testmod() - print(f"{two_sum([2, 7, 11, 15], 9) = }") + print(f"{two_sum([2, 7, 11, 15], 9)}") diff --git a/matrix/matriks_special.py b/matrix/matriks_special.py new file mode 100644 index 00000000..d2e28ca7 --- /dev/null +++ b/matrix/matriks_special.py @@ -0,0 +1,150 @@ +# https://en.wikipedia.org/wiki/Hankel_matrix +# https://en.wikipedia.org/wiki/Toeplitz_matrix +# https://en.wikipedia.org/wiki/Pascal_matrix +# https://id.wikipedia.org/wiki/Matriks_identitas +from typing import Union + + +def faktorial(n) -> int: + """ + >>> faktorial(5) + 120 + """ + if n < 0: + raise ValueError("nilai harus positif") + if n == 0: + return 1 + else: + f = 1 + for i in range(1, n + 1): + f *= i + return f + + +def kombinasi(n: int, r: int) -> int: + """ + >>> kombinasi(5, 2) + 10.0 + """ + if n < 0 or r < 0: + raise ValueError("Nilai Harus Positif") + if r > n: + return 0 + else: + penyebut = faktorial(n) + pembilang = faktorial(r) * faktorial(n - r) + C = penyebut / pembilang + return C + + +def identity(n: int = 2) -> list[list[Union[int]]]: + """ + Membuat matriks identitas + + >>> identity(3) + [[1, 0, 0], [0, 1, 0], [0, 0, 1]] + """ + A = [] + for i in range(n): + row = [] + for j in range(n): + if j == i: + row.append(1) + else: + row.append(0) + A.append(row) + return A + + +def hankel(A, b=1) -> list[list[Union[int, float]]]: + """ + Membuat matriks hankel + + >>> hankel(3) + [[1, 2, 3], [2, 3, 4], [3, 4, 5]] + """ + res = [] + for i in range(b, A + 1): + row = [] + for j in range(b, A + 1): + row.append(i + j - 1) + res.append(row) + return res + + +def toeplite(A, b=1) -> list[list[Union[int, float]]]: + """ + Membuat matriks hankel + + >>> toeplite(3) + [[0, -1, -2], [1, 0, -1], [2, 1, 0]] + """ + res = [] + for i in range(b, A + 1): + row = [] + for j in range(b, A + 1): + row.append(i - j) + res.append(row) + return res + + +def hilbert(A, b=1) -> list[list[Union[int, float]]]: + """ + Membuat matriks hilbert + + >>> hilbert(2) + [[1.0, 0.5], [0.5, 0.3333333333333333]] + """ + res = [] + for i in range(b, A + 1): + row = [] + for j in range(b, A + 1): + row.append(1 / (i + j - 1)) + res.append(row) + return res + + +def pascal(n, kind="simetri") -> list[list[Union[int, float]]]: + """ + Membuat matriks pascal dengan beberapa tipe + + >>> pascal(3) + [[1.0, 1.0, 1.0], [1.0, 2.0, 3.0], [1.0, 3.0, 6.0]] + >>> pascal(3, kind = 'lower') + [[1.0, 0, 0], [1.0, 1.0, 0], [1.0, 2.0, 1.0]] + """ + L_n = [] + for i in range(n): + colum = [] + for j in range(n): + x = kombinasi(i, j) + colum.append(x) + L_n.append(colum) + + r, c = len(L_n), len(L_n[0]) + t = [[0] * r for _ in range(c)] + for i in range(r): + for j in range(c): + t[j][i] = L_n[i][j] + + res = [[0 for _ in range(len(L_n))] for _ in range(len(L_n))] + x = len(L_n) + y = len(t) + y1 = len(t[0]) + for i in range(x): + for j in range(y1): + for k in range(y): + res[i][j] += L_n[i][k] * t[k][j] + + if kind.lower() == "lower": + return L_n + elif kind.lower() == "upper": + return t + else: + return res + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/matrix/median_matriks.py b/matrix/median_matriks.py new file mode 100644 index 00000000..948cf093 --- /dev/null +++ b/matrix/median_matriks.py @@ -0,0 +1,32 @@ +def median(matriks: list[list[int]]) -> int: + """ + menghitung nilai dari median dari sebuah matriks + yang sudah diurutkan + + Parameter: + matriks(list[list[int]]): matriks 2D yang berisi bilangan + bulat + + Contoh: + >>> matriks = [[1, 3, 5], [2, 6, 9], [3, 6, 9]] + >>> median(matriks) + 5 + >>> matriks = [[1, 2, 3], [4, 5, 6]] + >>> median(matriks) + 3 + """ + # flatten matriks 2D jadi list 1D yang terurut + linear = sorted(angka for baris in matriks for angka in baris) + + # hitung indeks tengah untuk menemukan median + tengah = (len(linear) - 1) // 2 + + # return hasil dari nilai median + return linear[tengah] + + +if __name__ == "__main__": + import doctest + + # jalankan doctesting + doctest.testmod() diff --git a/matrix/pencarian_biner_matrix.py b/matrix/pencarian_biner_matrix.py new file mode 100644 index 00000000..3f2d96af --- /dev/null +++ b/matrix/pencarian_biner_matrix.py @@ -0,0 +1,96 @@ +def pencarian_biner(array: list, batas_bawah: int, batas_atas: int, nilai: int) -> int: + """ + fungsi ini menjalankan pencarian biner pada array 1D dan + mengembalikan -1 jika nilai tidak ditemukan + + Parameter: + array(list): array 1D yang sudah diurutkan + nilai(int): nilai yang dicari dalam array + + Contoh: + >>> matriks = [1, 4,7, 11, 15] + >>> pencarian_biner(matriks, 0, len(matriks) - 1, 1) + 0 + >>> pencarian_biner(matriks, 0, len(matriks) - 1, 23) + -1 + """ + # hitung indeks tengah dari array + tengah = int((batas_bawah + batas_atas) // 2) + + # jika nilai di indeks sama dengan nilai yang dicari + # return indeks + if array[tengah] == nilai: + return tengah + + # jika batas bawah sudah sama atau lebih dari batas atas + # kembalikan -1 (nilai tidak ada) + if batas_bawah >= batas_atas: + return -1 + + # jikai nilai di indeks tengah lebih kecil dari nilai yang + # dicari, lakukan pencarian biner pada separuh kanan + if array[tengah] < nilai: + return pencarian_biner(array, tengah + 1, batas_atas, nilai) + + # jika nilai di indeks tengah lebih besar lakukan pencarian biner + # pada separuh kiri + else: + return pencarian_biner(array, batas_bawah, tengah - 1, nilai) + + +def pencarian_matriks_biner(nilai: int, matriks: list) -> list: + """ + fungsi ini akan menjalankan iterasi pada matriks 2D dan memanggil + pencarian_biner pada setiap baris matriks, return [-1, -1] jika + nilai tidak ditemukan + + Parameter: + nilai(int): nilai yang dicari dalam matriks + matriks(list): matriks 2D yang sudah diurutkan + + Contoh: + >>> matriks = [[1, 4, 5, 11, 15], + ... [2, 5, 8, 12, 19], + ... [3, 6, 9, 16, 22], + ... [10, 13, 14, 17, 24], + ... [18, 21, 23, 26, 30]] + >>> target = 1 + >>> pencarian_matriks_biner(target, matriks) + [0, 0] + >>> target = 34 + >>> pencarian_matriks_biner(target, matriks) + [-1, -1] + """ + + # inisialisasi indeks baris + indeks = 0 + + # jika nilai pertama di baris pertama sama dengan nilai yang dicari + # return indeks [0, 0] + if matriks[indeks][0] == nilai: + return [indeks, 0] + + # lakukan iterasi pada matriks selama indeks valid dan nilai di kolom pertama + # lebih kecli dari nilai yang dicari + while indeks < len(matriks) and matriks[indeks][0] < nilai: + # cari biner pada baris saat ini + hasil_pencarian = pencarian_biner( + matriks[indeks], 0, len(matriks[indeks]) - 1, nilai + ) + + # jika nilai ditemukan, retunr indeks baris dan kolom + if hasil_pencarian != -1: + return [indeks, hasil_pencarian] + + # pindah ke baris berikutnya + indeks += 1 + + # jika tidak ditemukan maka return [-1, -1] + return [-1, -1] + + +if __name__ == "__main__": + import doctest + + # jalankan doctesting + doctest.testmod() diff --git a/object_oriented_programming/README.md b/object_oriented/README.md similarity index 100% rename from object_oriented_programming/README.md rename to object_oriented/README.md diff --git a/object_oriented/advance/.gitignore b/object_oriented/advance/.gitignore new file mode 100644 index 00000000..d43a431a --- /dev/null +++ b/object_oriented/advance/.gitignore @@ -0,0 +1,2 @@ +env/* +/.mypy_cache \ No newline at end of file diff --git a/object_oriented/advance/README.md b/object_oriented/advance/README.md new file mode 100644 index 00000000..20fae70a --- /dev/null +++ b/object_oriented/advance/README.md @@ -0,0 +1,20 @@ +

+ Python Advance +

+ +# Python Advance (Tingkat Lanjut) + +Materi advance ini adalah materi lanjutan dari materi object\_oriented\_programming sebelumnya, alangkah baiknya untuk mempelajari tentang object\_oriented programming terlebih dahulu sebelum memasuki materi metaclass yang sedikit lumayan memusingkan bagi pemula. + +### List materi apa saja yang ada di materi Python Advance? + +> | Nama Materi | Link | Status | +> | --- | --- | --- | +> | *Magic/Dunder Method* | [Lihat Materi](pycode/magic_methods) | Completed | +> | *Decorators* | [Lihat Materi](pycode/decorators) | Completed | +> | *Generators* | [Lihat Materi](pycode/generators) | Completed | +> | *Argument Parsing* | [Lihat Materi](pycode/argument) | Completed | +> | *Type Hinting* | [Lihat Materi](pycode/type_hint) | Completed | +> | *Metaclass* | [Lihat Materi](pycode/metaclass) | Completed | + +

Catatan: bagi kamu yang belum mempelajari tentang dasaran dari object oriented programming di python, sangat di sarankan untuk mempelajari syntax berorientasi object pada python.

\ No newline at end of file diff --git a/object_oriented/advance/pycode/argument/README.md b/object_oriented/advance/pycode/argument/README.md new file mode 100644 index 00000000..d50793fe --- /dev/null +++ b/object_oriented/advance/pycode/argument/README.md @@ -0,0 +1,116 @@ +

+ Python Advance +

+ +# Argument Parsing (Argument Parse) + +Argument Parsing adalah salah satu metode penguraian argumen baris perintah yang berbeda di gunakan oleh bahasa pemrogramman yang berbeda juga untuk mengurai argumen baris perintah. + +### Membuat Argument Parse Tanpa Opsi + +Untuk bisa menangkap argumen variable pada system program kita, tentu saja kita membutuhkan package/module `sys` supaya kita bisa menangkap argumen variable ke dalam program kita. Mari kita langsung coba buat progamnya. + +```py +import sys + +arg : list[str] = sys.argv + +print(arg) +``` +Hasil yang kita tangkap dari argumen parsingnya. + +```console +> ['main.py', 'belajar', 'python', 'itu', 'FUN'] +``` +Lalu bagaimana caranya supaya tulisan file kita tidak ikut serta dalam penangkapan argumen variablenya? +Karena argumen variable yang di tangkap itu berupa tipe data `list` atau `array` dalam bahasa program lain, maka cara kita untuk mengaksesnya membutuhkan indeks. Kita bisa memakai `for loop` untuk mengaksesnya atau kita juga bisa memasukan indeksnya secara manual. + +```py +import sys + +arg : list[str]= sys.argv + +# Apa yang di tangkap oleh program pada argumen variable, maka program kita akan mengabaikan indeks ke 0 +print(arg[1:]) +``` +Maka secara otomatis kita akan mendapatkan nilai dari argumen variable yang di tangkap oleh program kita dan akan melewati indeks ke 0, karena indeks ke 0 terssbut adalah nama file program kita. +```console +> ['belajar', 'python', 'itu', 'FUN'] +``` + +Sekarang mari kita coba eksekusi argumen variable yang di tangkap menggunakan perulangan `for loop`. +Saat kita ingin eksekusi argumen variable dengan `for loop` maka kita perlu mengubah posisi indeksnya. + +```py +import sys + +arg : list[str]= sys.argv[1:] + +for i in arg: + print(i) +``` +Hasil dari perulangan `for loop` ke layar konsole +```console +> belajar +> python +> itu +> FUN +``` + +### Membuat Argument Parse Dengan Opsi + +Sekarang kita akan mencoba membuat suatu file menggunakan Command-Line yang kita buat sendiri, dengan contoh perintah seperti di bawah ini: + +```console +python main.py -c filename.txt +``` +atau bisa juga seperti ini +```console +python main.py --create filename.txt +``` + +### Sintaks Argument Options + +```py +import sys +import os +from getopt import getopt, GetoptError +from typing import List + + +try: + argv : List[str] = sys.argv[1:] + opts, args = getopt(argv, 'c:', ['create=']) + +except GetoptError as e: + raise e + +for opt, arg in opts: + if opt in ['-c', '--create']: + with open(arg, 'w') as file: + res = file.write('Berhasil membuat berkas dengan CLI...') + file.close() + else: + ... + +``` +Saat program dijalankan maka tidak ada nilai yang di kembalikan ke konsol. + +### Membuat Argument Parse dengan ArgParser + +Tentu, dengan adanya module ini kita di permudah untuk membuat flow aplikasi yang berbasis Command-Line. Tanpa perlu memikirkan bagaimana opsi yang harus kita tangkap. + +```py +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument('--create', '-c', help='Untuk kalian bisa membuat file baru') +args = parser.parse_args() + +if args.create: + with open(args.create, 'w') as file: + file.write('Berhasil membuat berkas dengan CLI...') + file.close() + +``` +Setelah program dijalankan tentu saja kita akan mendapatkan file baru di dalam direktori tempat program kita berada. diff --git a/object_oriented/advance/pycode/argument/args.py b/object_oriented/advance/pycode/argument/args.py new file mode 100644 index 00000000..de8732f3 --- /dev/null +++ b/object_oriented/advance/pycode/argument/args.py @@ -0,0 +1,19 @@ +import sys +from getopt import getopt, GetoptError +from typing import List + + +try: + argv: List[str] = sys.argv[1:] + opts, args = getopt(argv, "c:", ["create="]) + +except GetoptError as e: + raise e + +for opt, arg in opts: + if opt in ["-c", "--create"]: + with open(arg, "w") as file: + res = file.write("Berhasil membuat berkas dengan CLI...") + file.close() + else: + ... diff --git a/object_oriented/advance/pycode/decorators/README.md b/object_oriented/advance/pycode/decorators/README.md new file mode 100644 index 00000000..69bf56dd --- /dev/null +++ b/object_oriented/advance/pycode/decorators/README.md @@ -0,0 +1,172 @@ +

+ Python Advance +

+ +# Decorators di Python + +Decorators adalah alat yang sangat kuat dan berguna dalam Python karena memungkinkan pemrogram mengubah perilaku suatu fungsi atau kelas. Dekorator mengizinkan kita menggabungkan fungsi lain untuk memperluas perilaku fungsi yang dibungkus, tanpa mengubahnya secara permanen. + +> Namun sebelum mendalami fungsi dekorator, mari kita pahami beberapa konsep yang akan berguna dalam mempelajari fungsi dekorator. Untuk melihat contoh beberapa silahkan lihat di [Contoh Decorators](../object_oriented/advance/pycode/decorators/contoh_decorators.md) + +# Decorators + +Seperti yang dinyatakan di atas, dekorator digunakan untuk mengubah perilaku fungsi atau kelas. Di Dekorator, fungsi diambil sebagai argumen ke dalam fungsi lain dan kemudian dipanggil di dalam fungsi pembungkus. + +Setelah kita mempelajari bersama mengenai beberapa contoh-contoh tentang fungsi diatas, sekarang saatnya untuk kita mempelajari Decorators Function bersama-sama. + +Dalam membuat Decorator tentu saja kerap kaitannya dengan fungsi, yaa namanya juga Decorator Function kalau bukan fungsi apa lagi. + +## Contoh Syntax Decorators + +```py +@bellshade # <- Decorators dari sintaks fungsi (bellshade) +def wpu_store(): # <- Membuat fungsi dengan nama (wpu_store) + return 'Web Programming UNPAS!' # <- Mengembalikan nilai string [Web Programming UNPAS!] + +''' +--> Kode di atas setara dengan <-- + +def wpu_store(): <- Membuat fungsi dengan nama (wpu_store) + return 'Web Programming UNPAS!' <- Menampilkan nilai string [Web Programming UNPAS!] dari fungsi (wpu_store) + +wpu = bellshade(wpu_store) <- Membuat variable / objek (wpu) + +wpu() <- Mengeksekusi fungsi bellshade dengan perantara variable wpu +''' +``` + +## Decorators Mengubah Perilaku: + +```py +from typing import Callable + + +# Decorators +def bellshade(func : Callable) -> Callable: + + + def wrap(str1 : str) -> str: + return f'Selamat datang {str1}' + + return wrap # <- Mengembalikan fungsi (wrap) sebagai fungsi terdalam (bellshade) + + +# ----------| Cara Penggunaan Decorators |---------- # +@bellshade +def wpu(str1 : str) -> str: + return str1 + +``` + +saat program di jalankan, akan menampilkan: + +```console +> Selamat datang Bellshade +``` + +### Bagaimana jika suatu fungsi mengembalikan sesuatu atau argumen parameter yang diteruskan ke fungsi tersebut? + +Pada contoh kasus di bawah ini masih memiliki kesalahan dan menyebabkan TypeError. + +```py +from typing import Union, Callable + + +def openseries(func : Callable) -> Callable: + def wrap(*args) -> Union[int, float]: + return_val = func() + return return_val + return wrap + + +@openseries +def add(a : Union[int, float], b : Union[int, float]) -> Union[int, str]: + return f'Hasil dari parameter a & b ({a} + {b} = {a + b})' + + +print(add(5, 9)) + +``` + +Saat kita jalankan programnya, maka kita akan mendapatkan berupa surat cinta :D seperti di bawah ini: + +```console +Traceback (most recent call last): + File "/..../Python/object_oriented_programming/advance/pycode/decorators/decorators_return.py", line 19, in + print(add(5,9)) + ^^^^^^^^ +TypeError: openseries..wrap() takes 0 positional arguments but 2 were given +``` + +Lalu, cara menyelesaikan masalah TypeError gimana? +Heiiitss... Tenang dulu, disini kita akan memperbaikinya bersama-sama. Jadi kamu gak perlu khawatir dengan Errornya. + +Untuk menyelesaikannya kita cukup menambahkan code: `*args` didalam fungsi **wrap & func**, supaya kita tidak perlu menuliskan codenya 1 per 1 parameter argumennya. Sekarang mari kita coba kirim balik surat cintanya :D + +```py +# from typing import Union, Callable + + +def openseries(func : Callable) -> Callable: + def wrap(*args : Union[int, float]) -> Union[int, float]: + return_val = func(*args) + return return_val + return wrap + + +@openseries +def add(a : Union[int, float], b : Union[int, float]) -> Union[int, str]: + return f'Hasil dari parameter a & b ({a} + {b} = {a + b})' + + +print(add(5, 9)) + +``` +Pada saat program kita jalankan kembali, maka surat cinta yang tadi kita dapatkan udah gak muncul lagi loh... + +```console +> Hasil dari parameter a & b (5 + 9 = 14) +``` + +# Chaining Decorators (Rantai Decorators) + +Pada contoh kali ini kita akan membuat 2 fungsi yakni **add & add_quadrat**, langsung saja kita pelari bersama-sama cara menuliskan rantai decorators. + +```py +from typing import Callable + + +# DECORATORS CHAINING +def add(func : Callable) -> Callable: + + + def wrap() -> int: + x = func() + return x + x + return wrap + + +def add_quadrat(func : Callable) -> Callable: + + + def wrap() -> int: + x = func() + return x**2 + return wrap + + +# Cara menggunakan rantai decorators +@add +@add_quadrat +def num1() -> int: + return 25 + + +@add_quadrat +@add +def num2() -> int: + return 25 + +``` + +Horeee.... Selamat kita sudah sampai pada puncak mengenai materi cara membuat _**Decorators Function**_, jika teman-teman masih bingung dengan materi decorators ini. Sangat di sarankan untuk teman-teman senua mempelajari ulang mengenai fungsi / definisi python secara Procedural Oriented Programming tanpa harus memulai dengan Object Oriented Programming. \ No newline at end of file diff --git a/object_oriented/advance/pycode/decorators/contoh_decorators1.py b/object_oriented/advance/pycode/decorators/contoh_decorators1.py new file mode 100644 index 00000000..b7c3da22 --- /dev/null +++ b/object_oriented/advance/pycode/decorators/contoh_decorators1.py @@ -0,0 +1,15 @@ +# Contoh Decorator 1 +def menyapa(nama: str) -> str: + """Contoh pada decorator yang satu ini, kita hanya cukup satu fungsi + yang mengembalikan nilai Uppercase + :param nama: masukan bellshade pada parameter nama + >>> nama = "bellshade" + >>> salam = menyapa + >>> salam(nama) + 'BELLSHADE' + """ + return nama.upper() + + +def test_menyapa(): + assert "BELLSHADE" == menyapa("bellshade") diff --git a/object_oriented/advance/pycode/decorators/contoh_decorators2.py b/object_oriented/advance/pycode/decorators/contoh_decorators2.py new file mode 100644 index 00000000..c7b855be --- /dev/null +++ b/object_oriented/advance/pycode/decorators/contoh_decorators2.py @@ -0,0 +1,34 @@ +from typing import Callable + + +# Contoh Decorator 2 +def wpu(str1: str) -> str: + # Fungsi wpu yang mengembalikan nilai string upper + return str1.upper() + + +def terbuka(str2: str) -> str: + # Fungsi terbuka yang mengembalikan nilai string lower + return str2.lower() + + +def bellshade(func: Callable) -> str: + """ + Fungsi ini akan menampung fungsi dari luar fungsi bellshade + :param func: parameter fungsi yang akan menampung fungsi lainnya + >>> mhs1 = wpu + >>> mhs2 = terbuka + >>> bellshade(mhs1) + 'HALO SOBAT BELLSHADE!!!' + >>> bellshade(mhs2) + 'halo sobat bellshade!!!' + """ + return func("Halo Sobat bellshade!!!") + + +def test_func_upper(): + assert "HALO SOBAT BELLSHADE!!!" == bellshade(wpu) + + +def test_func_lower(): + assert "halo sobat bellshade!!!" == bellshade(terbuka) diff --git a/object_oriented/advance/pycode/decorators/contoh_decorators3.py b/object_oriented/advance/pycode/decorators/contoh_decorators3.py new file mode 100644 index 00000000..0e001e21 --- /dev/null +++ b/object_oriented/advance/pycode/decorators/contoh_decorators3.py @@ -0,0 +1,30 @@ +from typing import Callable + + +# Contoh Decorator 3 +def users(nama: str) -> Callable: + """ + Fungsi ini hanya mengembalikan sebuah fungsi + :param name: Parameter nama dari fungsi users + >>> nama = 'Udin' + >>> belajar = users(nama) + >>> belajar('Python') + 'Udin sedang belajar: Python' + """ + + def belajar(str1: Callable) -> str: + """ + Fungsi ini akan membungkus parameter dari users + """ + + # Return ini mengembalikan nilai untuk fungsi (belajar) + return f"{nama} sedang belajar: {str1}" + + # Di return terluar, kita akan mengembalikan nilai berupa fungsi (belajar) + return belajar + + +def test_input_user(): + name = "Udin" + belajar = users(name) + assert "Udin sedang belajar: Python" == belajar("Python") diff --git a/object_oriented/advance/pycode/decorators/contoh_decoratos.md b/object_oriented/advance/pycode/decorators/contoh_decoratos.md new file mode 100644 index 00000000..26c77f32 --- /dev/null +++ b/object_oriented/advance/pycode/decorators/contoh_decoratos.md @@ -0,0 +1,86 @@ +# Contoh Decorators + +## Contoh 1: Menjadikan Fungsi Sebagai Objek + +Pada contoh kita yang pertama, kita akan membuat fungsi dengan nama **menyapa**. + +```py +# Contoh Decorator 1 +def menyapa(nama : str) -> str: + """Contoh pada decorator yang satu ini, kita hanya cukup satu fungsi + yang mengembalikan nilai Uppercase + :param nama: masukan bellshade pada parameter nama + >>> nama = "bellshade" + >>> salam = menyapa + >>> salam(nama) + 'BELLSHADE' + """ + return nama.upper() + +``` + +## Contoh 2: Menjadikan Fungsi Sebagai Parameter Fungsi + +Pada contoh kita yang kedua, kita akan membuat beberapa fungsi dengan nama **wpu, terbuka, & bellshade**. + +```py +from typing import Callable + + +# Contoh Decorator 2 +def wpu(str1 : str) -> str: + # Fungsi wpu yang mengembalikan nilai string upper + return str1.upper() + + +def terbuka(str2 : str) -> str: + # Fungsi terbuka yang mengembalikan nilai string lower + return str2.lower() + + +def bellshade(func : Callable) -> str: + """ + Fungsi ini akan menampung fungsi dari luar fungsi bellshade + :param func: parameter fungsi yang akan menampung fungsi lainnya + >>> mhs1 = wpu + >>> mhs2 = terbuka + >>> bellshade(mhs1) + 'HALO SOBAT BELLSHADE!!!' + >>> bellshade(mhs2) + 'halo sobat bellshade!!!' + """ + return func("Halo Sobat bellshade!!!") + +``` + +## Contoh 3: Mengembalikan Fungsi Di Dalam Fungsi + +Pada contoh kita yang ketiga, kita akan membuat beberapa fungsi dengan nama **users & belajar**. + +```py +from typing import Callable + + +# Contoh Decorator 3 +def users(nama : str) -> Callable: + """ + Fungsi ini hanya mengembalikan sebuah fungsi + :param name: Parameter nama dari fungsi users + >>> nama = 'Udin' + >>> belajar = users(nama) + >>> belajar('Python') + 'Udin sedang belajar: Python' + """ + + def belajar(str1 : Callable) -> str: + """ + Fungsi ini akan membungkus parameter dari users + """ + + # Return ini mengembalikan nilai untuk fungsi (belajar) + return f'{nama} sedang belajar: {str1}' + + # Di return terluar, kita akan mengembalikan nilai berupa fungsi (belajar) + return belajar + +``` \ No newline at end of file diff --git a/object_oriented/advance/pycode/decorators/decorators.py b/object_oriented/advance/pycode/decorators/decorators.py new file mode 100644 index 00000000..b2d34b3c --- /dev/null +++ b/object_oriented/advance/pycode/decorators/decorators.py @@ -0,0 +1,29 @@ +from typing import Callable + + +# Decorators +def bellshade(func: Callable) -> Callable: + """ + Fungsi ini akan kita jadikan sebagai decoratord decorators (@) + Saat Mengeksekusi, kita cukup panggil Fungsi wpu + >>> wpu('Bellshade') + 'Selamat datang Bellshade' + """ + + def wrap(str1: str) -> str: + return f"Selamat datang {str1}" + + return wrap # <- Mengembalikan fungsi (wrap) sebagai fungsi terdalam (bellshade) + + +@bellshade +def wpu(str1: str) -> str: + return str1 + + +# ----------| Cara Penggunaan Decorators |---------- # +def test_decorators(): + @bellshade + def wpu(str1): + return str1 + assert str1 == "Bellshade" diff --git a/object_oriented/advance/pycode/decorators/decorators_chaining.py b/object_oriented/advance/pycode/decorators/decorators_chaining.py new file mode 100644 index 00000000..c5dba2ee --- /dev/null +++ b/object_oriented/advance/pycode/decorators/decorators_chaining.py @@ -0,0 +1,51 @@ +from typing import Callable + + +# DECORATORS CHAINING +def add(func: Callable) -> Callable: + """ + Fungsi ini akan memanggil fungsi lain dan mengembalikan fungsi + >>> num1() + 1250 + """ + + def wrap() -> int: + x = func() + return x + x + + return wrap + + +def add_quadrat(func: Callable) -> Callable: + """ + Fungsi ini akan memanggil fungsi lain dan mengembalikan fungsi + >>> num2() + 2500 + """ + + def wrap() -> int: + x = func() + return x**2 + + return wrap + + +# Cara menggunakan rantai decorators +@add +@add_quadrat +def num1() -> int: + return 25 + + +@add_quadrat +@add +def num2() -> int: + return 25 + + +def test_add(): + assert num1() == 1250 + + +def test_add_quadrat(): + assert num2() == 2500 diff --git a/object_oriented/advance/pycode/decorators/decorators_return.py b/object_oriented/advance/pycode/decorators/decorators_return.py new file mode 100644 index 00000000..c4419062 --- /dev/null +++ b/object_oriented/advance/pycode/decorators/decorators_return.py @@ -0,0 +1,27 @@ +from typing import Union, Callable + + +def openseries(func: Callable) -> Callable: + """ + Fungsi openseries akan di jadikan sebagai decorators yang mengembalikan fungsi + Sekarang coba jalankan fungsi add yang di decorators fungsi openseries + >>> a = 5 + >>> b = 9 + >>> add(a, b) + '(5 + 9): 14' + """ + + def wrap(*args: Union[int, float]) -> Union[int, float]: + return_val = func(*args) + return return_val + + return wrap + + +@openseries +def add(a: Union[int, float], b: Union[int, float]) -> Union[int, str]: + return f"({a} + {b}): {a + b}" + + +def test_openseries_add_func(): + assert add(5, 9) == "(5 + 9): 14" diff --git a/object_oriented/advance/pycode/generators/README.md b/object_oriented/advance/pycode/generators/README.md new file mode 100644 index 00000000..fe7c8691 --- /dev/null +++ b/object_oriented/advance/pycode/generators/README.md @@ -0,0 +1,83 @@ +

+ Python Advance +

+ +# Generators + +Generators: Alat atau sumber daya yang akan menghasilkan jenis kode atau bahasa pemrograman komputer tertentu. + +Dengan generator juga kita bisa membuat apapun baik itu Fake EmailDNS, User Fullname, HEX to RGB, dan masih banyak yang lainnya. + +## Cara membuat kode generator sederhana + +Kita bisa membuat angka acak mulai dari sekian ke sekian yang di kuadratkan berapapun nilai yang kita inginkan untuk di hasilkan. + +### Membuat Generators dengan For + +```py +from functools import wraps +from typing import Callable + + +# GENERATORS FOR +def Generators(func : Callable) -> Callable: + + + @wraps(func) + def start() -> int: + i : int = 1 + for i in range(13, 50): + i**func() + return i + return start + + +@Generators +def coba1(): + return 7 + + +if __name__ == '__main__': + coba1() + +``` + +### Membuat Generators dengan While + +```py +from typing import Union + + +# GENERATORS WHILE +class Generators: + + def __init__(self, target_int : Union[int, float], max_repeat : int = 5) -> None: + self.tar_mul = target_int + self.target_repeat_max = max_repeat + + def __call__(self): + self.start_generate() + + def start_generate(self) -> Union[int, float]: + self.indeks = 2 + + try: + while True: + self.indeks += 1 + self.res = self.indeks ** self.tar_mul + print(self.res) + + if self.indeks == self.target_repeat_max: + break + + return self.res + except Exception: + ... + + +app = Generators(7) + +if __name__ == '__main__': + app() + +``` \ No newline at end of file diff --git a/object_oriented/advance/pycode/generators/generators_for.py b/object_oriented/advance/pycode/generators/generators_for.py new file mode 100644 index 00000000..508d15bf --- /dev/null +++ b/object_oriented/advance/pycode/generators/generators_for.py @@ -0,0 +1,43 @@ +from functools import wraps +from typing import Callable + + +# GENERATORS +def Generators(func: Callable) -> Callable: + """ + Fungsi ini akan menerima parameter dari user untuk melakukan generate + ubah bagian range function menjadi [for i in range(random.randint(5,35))] + hapus [return i] jika ingin generate berlanjut + + :param func: Tipe parameter diharuskan object_func + :return: Hasil Generators + >>> coba1() + 49 + """ + + @wraps(func) + def start() -> int: + i: int = 1 + for i in range(13, 50): + i ** func() + return i + + return start + + +def test_generators(): + + @Generators + def coba1(): + return 7 + + assert coba1() == 49 + + +@Generators +def coba1(): + return 7 + + +if __name__ == "__main__": + print(coba1()) diff --git a/object_oriented/advance/pycode/generators/generators_while.py b/object_oriented/advance/pycode/generators/generators_while.py new file mode 100644 index 00000000..63d7bb36 --- /dev/null +++ b/object_oriented/advance/pycode/generators/generators_while.py @@ -0,0 +1,49 @@ +from typing import Union + + +# GENERATORS WHILE +class Generators: + """ + Kelas ini secara default hanya akan menghasilkan 1x generate + :param target_int: Untuk menentukan jumlah hasil generate + :param max_repeat: Untuk membatas perulangan agar berhenti dan tidak overloop + Jika kamu ingin mendapatkan hasil generate secara berkala hapus [return selft.res] + + >>> app = Generators(7) + >>> app() + 2187 + """ + + def __init__(self, target_int: Union[int, float], max_repeat: int = 5) -> None: + self.tar_mul = target_int + self.target_repeat_max = max_repeat + + def __call__(self): + self.start_generate() + + def start_generate(self) -> None: + self.indeks = 2 + + try: + while True: + self.indeks += 1 + self.res = self.indeks**self.tar_mul + print(self.res) + + if self.indeks == self.target_repeat_max: + break + + return self.res + except Exception: + ... + + +def test_generate_dengan_attribute(): + app = Generators(7) + assert app.start_generate() == 2187 + + +app = Generators(7) + +if __name__ == "__main__": + app() diff --git a/object_oriented/advance/pycode/magic_methods/Mmethod.py b/object_oriented/advance/pycode/magic_methods/Mmethod.py new file mode 100644 index 00000000..dc8da1aa --- /dev/null +++ b/object_oriented/advance/pycode/magic_methods/Mmethod.py @@ -0,0 +1,29 @@ +class Pastikom: + + def __init__(self, yourname: str, email: str) -> None: + """Magic Method + Kelas Pastikom memiliki 2 parameter dan/atau argumen + :param yourname: tuliskan nama mu di parameter pertama + :param email: tuliskan email mu di parameter ke dua + nama = 'Bellshade' + email = bellshade@pastikom.id + >>> Pastikom(nama, email) + Nama: Bellshade + Email: bellshade@pastikom.id + """ + self.name = yourname + self.email = email + + def __repr__(self) -> str: + """Fungsi representasi nilai parameter dan/atau argumen""" + return f"Nama: {self.name}\nEmail: {self.email}" + + def __del__(self) -> str: + """Fungsi informasi jika ada nilai parameter dan/atau argumen yang terhapus""" + return "Oh tidaaaak! Data sudah terhapus :'(" + + +nama: str = "Bellshade" +email: str = "bellshade@pastikom.id" +if __name__ == "__main__": + Pastikom(nama, email) diff --git a/object_oriented/advance/pycode/magic_methods/README.md b/object_oriented/advance/pycode/magic_methods/README.md new file mode 100644 index 00000000..50d61a47 --- /dev/null +++ b/object_oriented/advance/pycode/magic_methods/README.md @@ -0,0 +1,106 @@ +

+ Python Advance +

+ +# Magic Method Python + +Magic Method adalah definisi / fungsi / method yang dimulai dan diakhiri dengan garis bawah 2x atau ganda '__'. Mereka ditentukan oleh kelas bawaan dalam Python dan biasanya digunakan untuk kelebihan beban operator. Disebut juga Dunder Method, Dunder di sini berarti โ€œDouble Under (Garis Bawah)โ€. + +## Cara Penulisan Magic Method Python + +```py +class Pastikom: + + def __init__(self, yourname : str, email : str) -> None: + """Magic Method + Kelas Pastikom memiliki 2 parameter dan/atau argumen + :param yourname: tuliskan nama mu di parameter pertama + :param email: tuliskan email mu di parameter ke dua + nama = 'Bellshade' + email = bellshade@pastikom.id + >>> Pastikom(nama, email) + Nama: Bellshade + Email: bellshade@pastikom.id + """ + self.name = yourname + self.email = email + + def __repr__(self): + """Fungsi representasi nilai parameter dan/atau argumen""" + return f'Nama: { self.name }\nEmail: { self.email }' + + def __del__(self): + """Fungsi informasi jika ada nilai parameter dan/atau argumen yang terhapus""" + return "Oh tidaaaak! Data sudah terhapus :'(" + + +nama : str = "Bellshade" +email : str = "bellshade@pastikom.id" +if __name__ == '__main__': + Pastikom(nama, email) + +``` + +Jika, Kamu ingin mencobanya sendiri melalui cmd / terminal untuk mendapatkan daftar atribut dari _**Magic Mathod**_ dengan Python, buka cmd atau terminal lalu ketik python3 untuk membuka interpreter Python, dan ketik kode berikut: `dir(int)` + +Maka, akan muncul daftar atribut magic method seperti berikut: +```bash +>>> dir(int) +['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__delattr__', '__dir__', '__divmod__', '__doc__', '__eq__', '__float__', '__floor__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__index__', '__init__', '__init_subclass__', '__int__', '__invert__', '__le__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', '__neg__', '__new__', '__or__', '__pos__', '__pow__', '__radd__', '__rand__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__', '__ror__', '__round__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'as_integer_ratio', 'bit_count', 'bit_length', 'conjugate', 'denominator', 'from_bytes', 'imag', 'numerator', 'real', 'to_bytes'] +``` + +### Di bawah ini adalah daftar Magic Method Python dan kegunaannya. + +> Magic Mathod Initialization / Constructor + +1. `__new__` = Dapat di gunakan didalam instansiasi pada suatu object +2. `__init__` = Dapat di panggil dengan method / fungsi `__new__` +3. `__del__` = Untuk memberi informasi jika ada salah satu instansiasi pada object terhapus (deconstructor) + +> Magic Method Numeric + +1. `__trunc__(self)` = Dapat di implementasikan pada `math.trunc()` +2. `__ceil__(self)` = Dapat di implementasikan pada `math.ceil()` +3. `__floor__(self)` = Dapat di implementasikan pada `math.floor()` +4. `__round__(self,n)` = Dapat di implementasikan pada built-in method `round()` +5. `__invert__(self)` = Dapat di implementasikan pada inversi menggunakan operator `~` +6. `__abs__(self)` = Dapat di implementasikan pada built-in method `abs()` +7. `__neg__(self)` = Menerapkan perilaku pada operator negasi +8. `__pos__(self)` = Menerapkan perilaku pada operator unary positif + +> Magic Operator Aritmatika + +1. `__add__(self, other)` = Mengimplementasikan perilaku untuk `math.trunc()` +2. `__sub__(self, other)` = Mengimplementasikan perilaku untuk `math.ceil()` +3. `__mul__(self, other)` = Mengimplementasikan perilaku untuk `math.floor()` +4. `__floordiv__(self, other)` = Mengimplementasikan perilaku untuk putaran `round()` +5. `__div__(self, other)` = Mengimplementasikan perilaku inversi menggunakan operator `~` +6. `__truediv__(self, other)` = Mengimplementasikan perilaku untuk built-in `abs()` +7. `__mod__(self, other)` = Menerapkan perilaku untuk negasi +8. `__divmod__(self, other)` = Menerapkan perilaku untuk unary positif +9. `__pow__` = Mengimplementasikan perilaku eksponen menggunakan operator `**` +10. `__lshift__(self, other)` = Mengimplementasikan pergeseran bitwise kiri menggunakan operator `<<` +11. `__rshift__(self, other)` = Mengimplementasikan pergeseran bitwise kanan menggunakan operator `>>` +12. `__and__(self, other)` = Mengimplementasikan bitwise dan menggunakan operator `&` +13. `__or__(self, other)` = Mengimplementasikan bitwise atau menggunakan operator `|` +14. `__xor__(self, other)` = Mengimplementasikan xor bitwise menggunakan operator `^` (Tilde) + +> Magic Method String + +1. `__str__ (self)` = Mendefinisikan perilaku ketika str() dipanggil pada instance kelas +2. `__repr__(self)` = Untuk dipanggil dengan metode repr() bawaan untuk mengembalikan representasi tipe yang dapat dibaca mesin +3. `__unicode__(self)` = Method ini untuk mengembalikan string unicode dari suatu tipe +4. `__format__(self, formattr)` = Method ini mengembalikan gaya string baru +5. `__hash__(self)` = Ia harus mengembalikan bilangan bulat, dan hasilnya digunakan untuk perbandingan kunci cepat dalam kamus +6. `__nonzero__(self)` = Mendefinisikan perilaku ketika bool() dipanggil pada instance kelas +7. `__dir__(self)` = Method ini untuk mengembalikan daftar atribut suatu kelas +8. `__sizeof__( self)` = Method ini mengembalikan ukuran objek + +> Magic Method Compasion (Perbandingan) + +1. `__persamaan__(self, other)` = Mendefinisikan perilaku untuk operator kesetaraan `==` +2. `__ne__(self, other)` = Mendefinisikan perilaku untuk operator pertidaksamaan `!=` +3. `__lt__(self, other)` = Mendefinisikan perilaku untuk operator yang kurang dari `<` +4. `__gt__(self, other)` = Mendefinisikan perilaku untuk operator yang lebih besar dari `>` +5. `__le__(self, other)` = Mendefinisikan perilaku untuk operator yang kurang dari atau sama dengan `<=` +6. `__ge__(self, other)` = Mendefinisikan perilaku untuk operator yang lebih besar dari atau sama dengan `>=` \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/README.md b/object_oriented/advance/pycode/metaclass/README.md new file mode 100644 index 00000000..4d1c6c54 --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/README.md @@ -0,0 +1,20 @@ +

+ Python Advance +

+ +### Table of Content + +> | Nama Materi | Link | Status | +> | --- | --- | --- | +> | *Factory Pattern* | [Lihat Materi](pycode/magic_methods) | Completed | +> | *Proxy Pattern* | [Lihat Materi](pycode/decorators) | Completed | +> | *Singleton Pattern* | [Lihat Materi](pycode/generators) | Completed | +> | *Composite Pattern* | [Lihat Materi](pycode/generators) | Coming Soon | +> | *Facade Pattern* | [Lihat Materi](pycode/argument) | Coming Soon | +> | *Observer Pattern* | [Lihat Materi](pycode/type_hint) | Coming Soon | +> | *Builder Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | +> | *Adapter Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | +> | *Bridge Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | +> | *Prototype Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | +> | *Abstract Factory Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | +> | *Decorators Pattern* | [Lihat Materi](pycode/metaclass) | Coming Soon | \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/composite.py b/object_oriented/advance/pycode/metaclass/composite.py new file mode 100644 index 00000000..b02606ac --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/composite.py @@ -0,0 +1,87 @@ +import logging +from src import IJurusan + +# Logging Config +logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG) + + +class Informatika(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter untuk jumlah Informatika + ada berapa jumlah mahasiswa Informatika. + >>> mhs1 = Informatika(30) + >>> mhs1.jumlah_mahasiswa() + 30 + """ + + def __init__(self, mahasiswa): + self.mahasiswa = int(mahasiswa) + + def jumlah_mahasiswa(self): + return self.mahasiswa + + +class Management(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter untuk jumlah Management + ada berapa jumlah mahasiswa Management. + >>> mhs1 = Management(10) + >>> mhs1.jumlah_mahasiswa() + 10 + """ + + def __init__(self, mahasiswa): + self.mahasiswa = int(mahasiswa) + + def jumlah_mahasiswa(self): + return self.mahasiswa + + +class Jurusan(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter ini harus berisikan informasi + ada berapa jumlah mahasiswa Management. + >>> mhs1 = Informatika(30) + >>> mhs2 = Management(20) + >>> jurusan = Jurusan(2) + >>> jurusan.data_jurusan(mhs1) + >>> jurusan.data_jurusan(mhs2) + >>> jurusan.jumlah_mahasiswa() + """ + + def __init__(self, mahasiswa): + self.mahasiswa = mahasiswa + self.jurusan_dasar = mahasiswa + self.jumlah_jurusan = [] + + def data_jurusan(self, mahasiswa_jurusan): + self.jumlah_jurusan.append(mahasiswa_jurusan) + self.mahasiswa += mahasiswa_jurusan.jumlah_mahasiswa() + + def jumlah_mahasiswa(self): + logging.debug(f"Jumlah jurusan dasar: {self.jurusan_dasar}") + for jurusan in self.jumlah_jurusan: + logging.debug(f"{type(jurusan).__name__}: {jurusan.jumlah_mahasiswa()}") + logging.debug(f"Total mahasiswa: {self.mahasiswa}") + + +def test_insert_data_informatika(): + mhs = Informatika(100) + assert 100 == mhs.jumlah_mahasiswa() + + +def test_insert_data_management(): + mhs = Management(50) + assert 50 == mhs.jumlah_mahasiswa() + + +if __name__ == "__main__": + p1 = Informatika(30) + p2 = Management(50) + jurusan = Jurusan(2) + jurusan.data_jurusan(p1) + jurusan.data_jurusan(p2) + jurusan.jumlah_mahasiswa() diff --git a/object_oriented/advance/pycode/metaclass/docs/composite.md b/object_oriented/advance/pycode/metaclass/docs/composite.md new file mode 100644 index 00000000..1baff53e --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/docs/composite.md @@ -0,0 +1,135 @@ +

+ Composite Design Pattern +

+ +# Composite Pattern + +Dalam rekayasa perangkat lunak, pola komposit adalah pola desain partisi. Pola komposit mendeskripsikan sekelompok objek yang diperlakukan dengan cara yang sama seperti satu contoh objek dengan tipe yang sama. + +Tujuan dari komposit adalah untuk "menyusun" objek ke dalam struktur pohon untuk mewakili hierarki sebagian-keseluruhan. Menerapkan pola komposit memungkinkan klien memperlakukan objek dan komposisi individual secara seragam. + +### 1. Buatlah file dengan nama Composite + +Sama seperti materi sebelumnya, bahwa kita mengharuskan membuat kelas yang abstrak untuk kita jadikan sebagai pacuan kita membuat kelas templatenya + +```py +import logging +from abc import ABCMeta, abstractmethod, abstractstaticmethod + +# Logging Config +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG) + + +# COMPOSITE DESIGN PATTERN +class IJurusan(metaclass=ABCMeta): + + @abstractmethod + def __init__(self, mahasiswa): + """ Implement in child Class """ + + @abstractstaticmethod + def jumlah_mahasiswa(self): + pass +``` + +### 2. Tambahkan beberapa kelas yang dibutuhkan + +Kelas Informatika +```py +class Informatika(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter untuk jumlah Informatika + ada berapa jumlah mahasiswa Informatika. + >>> mhs1 = Informatika(30) + >>> mhs1.jumlah_mahasiswa() + 30 + """ + + def __init__(self, mahasiswa): + self.mahasiswa = int(mahasiswa) + + def jumlah_mahasiswa(self): + return self.mahasiswa +``` + +Kelas Management +```py +class Management(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter untuk jumlah Management + ada berapa jumlah mahasiswa Management. + >>> mhs1 = Management(10) + >>> mhs1.jumlah_mahasiswa() + 10 + """ + + def __init__(self, mahasiswa): + self.mahasiswa = int(mahasiswa) + + def jumlah_mahasiswa(self): + return self.mahasiswa +``` + +### 3. Sekarang kita buat kelas Jurusan yang kita fungsikan sebagai Composite + +```py +class Jurusan(IJurusan): + """Kelas ini akan mengimplementasi kelas abstrak IJurusan + yang memiliki parameter mahasiswa dari kelas abstrak + :param mahasiswa: Parameter ini harus berisikan informasi + ada berapa jumlah mahasiswa Management. + >>> mhs1 = Informatika(30) + >>> mhs2 = Management(20) + >>> jurusan = Jurusan(2) + >>> jurusan.data_jurusan(mhs1) + >>> jurusan.data_jurusan(mhs2) + >>> jurusan.jumlah_mahasiswa() + """ + + def __init__(self, mahasiswa): + self.mahasiswa = mahasiswa + self.jurusan_dasar = mahasiswa + self.jumlah_jurusan = [] + + def data_jurusan(self, mahasiswa_jurusan): + self.jumlah_jurusan.append(mahasiswa_jurusan) + self.mahasiswa += mahasiswa_jurusan.jumlah_mahasiswa() + + def jumlah_mahasiswa(self): + logging.debug(f'Jumlah jurusan dasar: {self.jurusan_dasar}') + for jurusan in self.jumlah_jurusan: + logging.debug(f'{type(jurusan).__name__}: {jurusan.jumlah_mahasiswa()}') + logging.debug(f'Total mahasiswa: {self.mahasiswa}') +``` + +Jangan lupakan ifmain jika kita ingin menjalankan program ini dengan kelss yang kita inginkan agar bisa berjalan sebagai landasan awal program kita +```py +if __name__ == '__main__': + p1 = Informatika(30) + p2 = Management(50) + jurusan = Jurusan(2) + jurusan.data_jurusan(p1) + jurusan.data_jurusan(p2) + jurusan.jumlah_mahasiswa() +``` + +Saat program kita jalankan, maka kita akan mendapatkan hasil seperti dibawah ini jika penulisan program kita sudah benar + +```console +DEBUG: Jumlah jurusan dasar: 2 +DEBUG: Informatika: 30 +DEBUG: Management: 50 +DEBUG: Total mahasiswa: 82 +``` + +Jika teman-teman ingin mengujinya menggunakan Pytest, berikut ini adalah penulisan kode yang untuk di uji oleh Pytest + +```py +def test_insert_data_informatika(): + mhs = Informatika(100) + assert 100 == mhs.jumlah_mahasiswa() +``` + +Sebelumnya: [Singleton Pattern](singleton.md) | Selanjutnya: [Facade Pattern (Coming Soon)](facade.md) \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/docs/factory.md b/object_oriented/advance/pycode/metaclass/docs/factory.md new file mode 100644 index 00000000..1628133d --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/docs/factory.md @@ -0,0 +1,130 @@ +

+ Factory Design Pattern +

+ +# Factory Pattern + +Dalam pemrograman yang berorientasi objek, merupakan suatu pola yang biasa di sebut sebagai metode pabrik adalah pola kreasi yang menggunakan metode pabrik untuk menangani masalah pembuatan objek tanpa harus menentukan kelas pasti dari objek yang akan dibuat. + +Saat kita membuat suatu pola tertentu, pasti akan erat kaitannya dengan metaclass / dataclass yang masih merupakan Blueprint sebagai landasan awal sebelum di implementasikan ke client object. Sebagai langkah awal mari sama-sama kita buat terlebih dahulu Interface dan/atau bisa di sebut juga sebagai Blueprint Class yang masih sangat abstrak. + +### 1. Buatlah file dengan nama factory atau nama apapun + +```py +import sys +import logging +from abc import ABCMeta, abstractstaticmethod + + +# FACTORY DESIGN PATTERN +class IPeople(metaclass=ABCMeta): + __nama: str + __posisi: str + + @abstractstaticmethod + def major(self) -> str: + return '' + """ Interface IPeople Method """ +``` +Kedua kode diatas sama fungsinya untuk kita membuat kode program yang abstrak sama seperti bahasa program lainnya. + +Karena kita ingin membuat sebuah Blueprint maka, tentu saja kita membutuhkan sebuah Blueprint Abstrak dari kelas ABC / ABCMeta. Python tidak seperti bahasa pemrograman yang lain yang bisa dengan langsung membuat sebuah program yang abstrak maupun interface. + +Bagaimana cara kita untuk bisa membuat program yang masih Abstrak / Interface? Kita hanya perlu memanggil package module abc untuk melakukan penulisan kode yang abstraksi. + +### 2. Kita tambahkan beberapa kelas + +#### Kelas Mahasiswa +```py +class Mahasiswa(IPeople): + + __nama: str = 'Bellshade' + __posisi: str = 'Mahasiswa UNPAS' + + def __call__(self) -> None: + logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG) + logging.debug(f'Nama: {self.__nama}') + logging.debug(f'Posisi: {self.major()}') + + def major(self): + return __class__.__posisi +``` + +#### Kelas Dosen +```py +class Dosen(IPeople): + + __nama: str = 'Sandhika Galih' + __posisi: str = 'Dosen UNPAS' + + def __call__(self): + logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG) + logging.debug(f'Nama: {self.__nama}') + logging.debug(f'Posisi: {self.major()}') + + def major(self): + return __class__.__posisi +``` + +### 3. Sekarang kita buat kelas Factory + +```py +class PeopleFactory: + + @staticmethod + def create_people(role_people): + if role_people[0].lower() == 'mahasiswa': + return mhs() + elif role_people[0].lower() == 'dosen': + return dosen() + else: + logging.warning('Argument tidak dikenal!') +``` + +Setelah semua kode kita tulis seperti diatas, sekarang kita coba buat instansiasikan dari kelas yang sudah kita buat. +```py +mhs = Mahasiswa() +dosen = Dosen() +``` + +Karena kita memggunakan module `sys & logging` untuk mengambil nilai argument mahasiswa dan/atau dosen dari konsol kita agar kode kita terlihat rapih. + +```py +if __name__ == '__main__': + prompt = sys.argv[1:] + try: + if len(prompt) >= 0: + PeopleFactory.create_people(prompt) + except IndexError: + logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARN) + logging.warning('Argument mahasiswa atau dosen tidak terdeteksi!') +``` + +Yuk, sekarang kita coba jalankan program kita di konsol mau itu lewat CMD / Terminal lainnya. + +```console +> python factory.py +``` +Jika kita tidak memberikan argument mahasiswa atau dosen, maka akan muncul pesan error. + +

WARNING: Argument mahasiswa atau dosen tidak terdeteksi!

+ +Lalu bagaimana jika kita memasukan argument tapi terdapat tulisan yang salah (Typo...). Sama seperti halnya di atas, jika tidak memberikan argument atau memiliki kesalahan penulisan maka akan muncul pesan error di hadapan kita. +```console +> python factory.py mahasiwa +``` +Maka hasilnya adalah... +

WARNING:root:Argument tidak dikenal!

+ +Jika kita menuliskan argument dengan benar, kita tidak akan mendapatkan pesan error seperti diatas. +```console +> python factory.py mahasiwa +``` + +dan sekarang lihatlah hasil yang didapat jika kita menuliskannya dengan benar. +```console +DEBUG: Nama: Sandhika Galih +DEBUG: Posisi: Dosen UNPAS +``` + +Selanjutnya: [Proxy Pattern](proxy.md) \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/docs/proxy.md b/object_oriented/advance/pycode/metaclass/docs/proxy.md new file mode 100644 index 00000000..fa98c350 --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/docs/proxy.md @@ -0,0 +1,121 @@ +

+ Proxy Design Pattern +

+ +# Proxy Pattern + +Dalam pemrograman yang berorientasi objek, pola proxy adalah pola desain perangkat lunak. Proxy, dalam bentuknya yang paling umum adalah kelas yang berfungsi sebagai antarmuka untuk sesuatu yang lain. + +Cara penulisan kode saat ini, tidaklah jauh berbeda dengan materi **[Factory Patter](factory.md)** sebelumnya, yang membedakan hanya pada Interface dan/atau Abstrak kelasnya serta ada penambahan kelas yang baru. + +### 1. Buatlah file dengan nama proxy + +```py +import logging +from src import IUniv +from typing import Callable + +# Logging Config +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG) + +# PROXY DESIGN PATTERN +class IUniv(metaclass=ABCMeta): + + @abstractstaticmethod + def division(self): + """ Interface IUniv Method """ +``` + +### 2. Lanjutkan dengan menuliskan beberapa kelas + +Kelas Mahasiswa +```py +class Mahasiswa(IUniv): + """ Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Mahasiswa() + >>> guest.division() + """ + + def division(self): + logging.debug('Mahasiswa') +``` + +Kelas Dosen +```py +class Dosen(IUniv): + """ Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Dosen() + >>> guest.division() + """ + + def division(self): + logging.debug('Dosen') +``` + +Kelas Rektor +```py +class Rektor(IUniv): + """ Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Rektor() + >>> guest.division() + """ + + def division(self): + logging.debug('Rektor') +``` + +### 3. Buat kelas UnivProxy + +```py +class UnivProxy(IUniv): + """ Kelas ini tidak akan menerima parameter apapun, + kelas ini hanya terdiri dari cunstructor init yang + hanya memiliki attribute kelas. + :attribute dosen: Menginstansiasikan kelas Dosen di Pattern + :attribute rektor: Menginstansiasikan kelas Rektor di Pattern + >>> proxy = ProxyPattern() + >>> proxy() + """ + def __init__(self): + self.dosen = Dosen() + self.rektor = Rektor() + self.mahasiswa = Mahasiswa() + + def __call__(self) -> Callable: + self.division() + + def division(self): + logging.debug('ProxyPattern Functionality.\n==========') + self.dosen.division() + self.rektor.division() + self.mahasiswa.division() + logging.debug('ProxyPattern Functionality.\n==========') +``` + +Sebagai langkah terakhir, kita akan eksekusi kelas UnivProxy +```py +if __name__ == '__main__': + proxy: Callable = UnivProxy() + proxy() +``` + +Saat kita jalankan program di konsol kita, maka hasilnya akan kita bisa lihat seperti berikut ini. + +```console +> python proxy.py +``` + +Hasil yang kita inginkan seperti dibawah ini +```console +> DEBUG: ProxyPattern Functionality. +> ========== +> DEBUG: Dosen +> DEBUG: Rektor +> DEBUG: Mahasiswa +> DEBUG: ProxyPattern Functionality. +> ========== +``` +Sebelumnya: [Factory Pattern](factory.md) | Selanjutnya: [Singleton Pattern](singleton.md) \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/docs/singleton.md b/object_oriented/advance/pycode/metaclass/docs/singleton.md new file mode 100644 index 00000000..3123fa96 --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/docs/singleton.md @@ -0,0 +1,105 @@ +

+ Singleton Design Pattern +

+ +# Singleton Pattern + +Dalam rekayasa perangkat lunak, singleton pattern atau bisa di sebut juga pola tunggal adalah pola desain perangkat lunak yang membatasi pembuatan instance kelas menjadi instance tunggal. + +Pada materi-materi sebelumnya kita selalu membuat kelas yang saat di instance tanpa ada batasannya. Nah sekarang kita buat batasan pada pola supaya kelas yang di instance cukup 1x dan/atau jika melebihi akan mendapatkan pesan error. + +### 1. Buatlah file dengan nama singleton + +```py +import logging +from abc import ABCMeta, abstractstaticmethod + +# Logging Config +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG) + +# SINGLETON DESIGN PATTERN +class IMahasiswa(metaclass=ABCMeta): + + @abstractstaticmethod + def log_instance(self): + """ Implement in child Class""" +``` + +### 2. Sekarang saatnya kita buat kelas untuk pola singleton +```py +class SingletonMahasiswa(IMahasiswa): + """Kelas Mahasiswa tidak memiliki argument or params + akan tetapi, setiap kelas yang instance dari IPeople + akan memiliki private variable. + + :param nama: Implementasi variable dari IPeople + :param jurusan: Implementasi variable dari IPeople + + >>> mhs = SingletonMahasiswa('Bellshade', 'Helper') + >>> mhs.log_instance(mhs) + """ + + __instance = None + + @staticmethod + def get_instance(self): + """ Fungsi ini mengambil __instance None, jika instance masih + bertipe None maka akan di isi oleh instance object pertama kali + karena pola Singleton ini membatasi kegunaan instance object. + """ + if SingletonMahasiswa.__instance is None: + SingletonMahasiswa('Bellshade', 'Helper') + else: + return SingletonMahasiswa.__instance + + def __init__(self, nama, jurusan): + if SingletonMahasiswa.__instance is not None: + raise Exception('Singleton tidak dapat membuat instance lebih dari sekali!') + else: + self.nama = nama + self.jurusan = jurusan + SingletonMahasiswa.__instance = self + + @staticmethod + def log_instance(self): + """ + Fungsi ini merupakan implementasi dari kelas Abstrak IMahasiswa + """ + logging.debug(f'Nama: {SingletonMahasiswa.__instance.nama}') + logging.debug(f'Jurusan: {SingletonMahasiswa.__instance.jurusan}') +``` + +### 3. eksekusi kode kita dengan ifmain +```py +if __name__ == '__main__': + p = SingletonMahasiswa('Sandhika Galih', 'Dosen Informatika') + p.log_instance(p) +``` + +Jika kita jalankan programnya di konsol, maka kita akan mendapatkan hasil seperti di bawah: +```console +> DEBUG: Nama: Sandhika Galih +> DEBUG: Jurusan: Dosen Informatika +``` + +Jikalau kita paksakan instance kelas sekali lagi bisa gak yaa? +```py +if __name__ == '__main__': + p = SingletonMahasiswa('Sandhika Galih', 'Dosen Informatika') + p2 = SingletonMahasiswa('Tono', 'Mahasiswa Informatika') + p.log_instance(p) + p2.log_instance(p2) +``` + +Hasil yang kita dapatkan kalau kita tetap ingin memaksa untuk instance kelas sekali lagi + +```console +Traceback (most recent call last): + File "/storage/emulated/0/Dev/Python/object_oriented/advance/pycode/metaclass/singleton.py", line 51, in + p2 = SingletonMahasiswa('Tono', 'Mahasiswa Informatika') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/storage/emulated/0/Dev/Python/object_oriented/advance/pycode/metaclass/singleton.py", line 34, in __init__ + raise Exception('Singleton tidak dapat membuat instance lebih dari sekali!') +Exception: Singleton tidak dapat membuat instance lebih dari sekali! +``` +Sebelumnya: [Proxy Pattern](proxy.md) | Selanjutnya: [Composite Pattern](composite.md) \ No newline at end of file diff --git a/object_oriented/advance/pycode/metaclass/factory.py b/object_oriented/advance/pycode/metaclass/factory.py new file mode 100644 index 00000000..419f30b0 --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/factory.py @@ -0,0 +1,81 @@ +import sys +import logging +from src import IPeople + + +class Mahasiswa(IPeople): + """Kelas Mahasiswa tidak memiliki argument or params + akan tetapi, setiap kelas yang instance dari IPeople + akan memiliki private variable. + + :var __nama: Implementasi variable dari IPeople + :var __posisi: Implementasi variable dari IPeople + + >>> mhs = Mahasiswa() + >>> mhs.major() + 'Mahasiswa UNPAS' + """ + + __nama: str = "Bellshade" + __posisi: str = "Mahasiswa UNPAS" + + def __call__(self) -> None: + logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG) + logging.debug(f"Nama: {self.__nama}") + logging.debug(f"Posisi: {self.major()}") + + def major(self): + return __class__.__posisi + + +class Dosen(IPeople): + """Kelas Mahasiswa tidak memiliki argument or param + akan tetapi, setiap kelas yang instance dari IPeople + akan memiliki private variable. + :var __nama: Implementasi variable dari IPeople + :var __posisi: Implementasi variable dari IPeople + >>> mhs = Dosen() + >>> mhs.major() + 'Dosen UNPAS' + """ + + __nama: str = "Sandhika Galih" + __posisi: str = "Dosen UNPAS" + + def __call__(self): + logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG) + logging.debug(f"Nama: {self.__nama}") + logging.debug(f"Posisi: {self.major()}") + + def major(self): + return __class__.__posisi + + +class PeopleFactory: + + @staticmethod + def create_people(role_people): + if role_people[0].lower() == "mahasiswa": + return mhs() + elif role_people[0].lower() == "dosen": + return dosen() + else: + logging.warning("Argument tidak dikenal!") + + +def test_major_mahasiswa_factories(): + mhs1 = Mahasiswa() + assert mhs1.major() == "Mahasiswa UNPAS" + + +mhs = Mahasiswa() +dosen = Dosen() + +if __name__ == "__main__": + prompt = sys.argv[1:] + try: + if len(prompt) >= 0: + PeopleFactory.create_people(prompt) + except IndexError: + logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.WARN) + logging.warning("Argument mahasiswa atau dosen tidak terdeteksi!") diff --git a/object_oriented/advance/pycode/metaclass/proxy.py b/object_oriented/advance/pycode/metaclass/proxy.py new file mode 100644 index 00000000..8f32505b --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/proxy.py @@ -0,0 +1,71 @@ +import logging +from src import IUniv +from typing import Callable + + +# Logging Config +logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG) + + +class Mahasiswa(IUniv): + """Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Mahasiswa() + >>> guest.division() + """ + + def division(self): + logging.debug("Mahasiswa") + + +class Dosen(IUniv): + """Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Dosen() + >>> guest.division() + """ + + def division(self): + logging.debug("Dosen") + + +class Rektor(IUniv): + """Kelas ini tidak memiliki parameter tetapi memiliki fungxi + :func division: Fungsi untuk memberikan informasi + >>> guest = Rektor() + >>> guest.division() + """ + + def division(self): + logging.debug("Rektor") + + +class UnivProxy(IUniv): + """Kelas ini tidak akan menerima parameter apapun, + kelas ini hanya terdiri dari cunstructor init yang + hanya memiliki attribute kelas. + :attribute dosen: Menginstansiasikan kelas Dosen di Pattern + :attribute rektor: Menginstansiasikan kelas Rektor di Pattern + >>> proxy = UnivProxy() + >>> proxy() + """ + + def __init__(self): + self.dosen = Dosen() + self.rektor = Rektor() + self.mahasiswa = Mahasiswa() + + def __call__(self): + self.division() + + def division(self): + logging.debug("ProxyPattern Functionality.\n==========") + self.dosen.division() + self.rektor.division() + self.mahasiswa.division() + logging.debug("ProxyPattern Functionality.\n==========") + + +if __name__ == "__main__": + proxy: Callable = UnivProxy() + proxy() diff --git a/object_oriented/advance/pycode/metaclass/singleton.py b/object_oriented/advance/pycode/metaclass/singleton.py new file mode 100644 index 00000000..e528887d --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/singleton.py @@ -0,0 +1,53 @@ +import logging +from src import IMahasiswa + +logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG) + + +class SingletonMahasiswa(IMahasiswa): + """Kelas Mahasiswa tidak memiliki argument or params + akan tetapi, setiap kelas yang instance dari IPeople + akan memiliki private variable. + + :param nama: Implementasi variable dari IPeople + :param jurusan: Implementasi variable dari IPeople + + >>> mhs = SingletonMahasiswa('Bellshade', 'Helper') + >>> mhs.log_instance(mhs) + """ + + __instance = None + + @staticmethod + def get_instance(self): + """Fungsi ini mengambil __instance None, jika instance masih + bertipe None maka akan di isi oleh instance object pertama kali + karena pola Singleton ini membatasi kegunaan instance object. + """ + if SingletonMahasiswa.__instance is None: + SingletonMahasiswa("Bellshade", "Helper") + else: + return SingletonMahasiswa.__instance + + def __init__(self, nama, jurusan): + if SingletonMahasiswa.__instance is not None: + raise Exception("Singleton tidak dapat membuat instance lebih dari sekali!") + else: + self.nama = nama + self.jurusan = jurusan + SingletonMahasiswa.__instance = self + + @staticmethod + def log_instance(self): + """ + Fungsi ini merupakan implementasi dari kelas Abstrak IMahasiswa + """ + logging.debug(f"Nama: {SingletonMahasiswa.__instance.nama}") + logging.debug(f"Jurusan: {SingletonMahasiswa.__instance.jurusan}") + + +if __name__ == "__main__": + p = SingletonMahasiswa("Sandhika Galih", "Dosen Informatika") + p2 = SingletonMahasiswa("Tono", "Mahasiswa Informatika") + p.log_instance(p) + p2.log_instance(p2) diff --git a/object_oriented/advance/pycode/metaclass/src/__init__.py b/object_oriented/advance/pycode/metaclass/src/__init__.py new file mode 100644 index 00000000..3522b6d7 --- /dev/null +++ b/object_oriented/advance/pycode/metaclass/src/__init__.py @@ -0,0 +1,40 @@ +from abc import ABCMeta, abstractmethod, abstractstaticmethod + + +# FACTORY DESIGN PATTERN +class IPeople(metaclass=ABCMeta): + __nama: str + __posisi: str + + @abstractstaticmethod + def major(self) -> str: + return "" + """ Interface IPeople Method """ + + +# PROXY DESIGN PATTERN +class IUniv(metaclass=ABCMeta): + + @abstractstaticmethod + def division(self): + """Interface IUniv Method""" + + +# SINGLETON DESIGN PATTERN +class IMahasiswa(metaclass=ABCMeta): + + @abstractstaticmethod + def log_instance(self): + """Implement in child Class""" + + +# COMPOSITE DESIGN PATTERN +class IJurusan(metaclass=ABCMeta): + + @abstractmethod + def __init__(self, mahasiswa): + """Implement in child Class""" + + @abstractstaticmethod + def jumlah_mahasiswa(self): + pass diff --git a/object_oriented/advance/pycode/type_hint/README.md b/object_oriented/advance/pycode/type_hint/README.md new file mode 100644 index 00000000..dbc74626 --- /dev/null +++ b/object_oriented/advance/pycode/type_hint/README.md @@ -0,0 +1,77 @@ +

+ Python Advance +

+ +# Type Hinting + +_**Type Hint**_ yang merupakan petunjuk tipe adalah solusi formal untuk secara statis menunjukkan tipe data dalam kode Python Kita. Itu ditentukan di PEP 484 dan diperkenalkan di Python 3.5. + +Dari segi gaya penulisan sintaks type hinting, *PEP 8* merekomendasikan seperti berikut: + +- Gunakan aturan normal untuk titik dua, yaitu tidak ada spasi sebelum dan satu spasi setelah titik dua ( text: str). +- Gunakan spasi di sekitar =tanda saat menggabungkan anotasi argumen dengan nilai default ( align: bool = True). +- Gunakan spasi di sekitar -> panah ( def headline(...) -> str). + +Dalam melakukan penunjuk nilai tipe data kita bisa menggunakan module bantuan `typing` di package yang di sediakan. Dan saat ini ingin mencoba menjalankan program type hints kita, maka kita membutuhkan package atau module dari luar yakni `mypy` dengan menggunakan package `mypy` kita bisa mendebug kode type hinting kita. + +Instalasasi mypy secara user global Environtment Python +```console +pip install mypy +``` +Instalasasi mypy secara Developer Python Mode (Editable) +```console +pip install -e mypy +``` + +Berikut istilah penulisan Type Hintings +```py +from typing import Any, Callable, Union, List, Dict + +nama: str +umur: int +uang: float +obj: dict +arr: list +args: Any +func: Callable +ambigu: Union[str, int, float] +data: List[Any] +data_obj: Dict[Any, Any] +``` + +## Contoh Penulisan Type Hintings Beserta Testingnya + +```py +from typing import Callable + +# variable with type hint +nama: str = 'Bellshade' + + +# definisi function with type hint with return function +def user(nama: str) -> Callable: + """ + Fungsi untuk menangkap value dari fungsi id + >>> nama = 'Bellshade' + >>> user(nama) + 'Bellshade' + """ + return id(nama) + + +# definisi function with type hint and return +def id(nama: str) -> str: + return nama + + +# testing code +def test_runner_code(): + nama = 'Bellshade' + assert user(nama) == 'Bellshade' + + +# running +if __name__ == '__main__': + user(nama) + +``` \ No newline at end of file diff --git a/object_oriented/advance/pycode/type_hint/hinter.py b/object_oriented/advance/pycode/type_hint/hinter.py new file mode 100644 index 00000000..af27e17f --- /dev/null +++ b/object_oriented/advance/pycode/type_hint/hinter.py @@ -0,0 +1,29 @@ +# variable with type hint +nama: str = "Bellshade" + + +# definisi function with type hint with return function +def user(nama: str) -> str: + """ + Fungsi untuk menangkap value dari fungsi id + >>> nama = 'Bellshade' + >>> user(nama) + 'Bellshade' + """ + return id(nama) + + +# definisi function with type hint and return +def id(nama: str) -> str: + return nama + + +# testing code +def test_runner_code(): + nama = "Bellshade" + assert user(nama) == "Bellshade" + + +# running +if __name__ == "__main__": + user(nama) diff --git a/object_oriented_programming/basic_oop/00_definisi_kelas/README.md b/object_oriented/basic_oop/00_definisi_kelas/README.md similarity index 100% rename from object_oriented_programming/basic_oop/00_definisi_kelas/README.md rename to object_oriented/basic_oop/00_definisi_kelas/README.md diff --git a/object_oriented_programming/basic_oop/01_atribut_kelas/README.md b/object_oriented/basic_oop/01_atribut_kelas/README.md similarity index 100% rename from object_oriented_programming/basic_oop/01_atribut_kelas/README.md rename to object_oriented/basic_oop/01_atribut_kelas/README.md diff --git a/object_oriented_programming/basic_oop/01_atribut_kelas/atribut_kelas.py b/object_oriented/basic_oop/01_atribut_kelas/atribut_kelas.py similarity index 100% rename from object_oriented_programming/basic_oop/01_atribut_kelas/atribut_kelas.py rename to object_oriented/basic_oop/01_atribut_kelas/atribut_kelas.py diff --git a/object_oriented_programming/basic_oop/02_mewarisi_kelas/README.md b/object_oriented/basic_oop/02_mewarisi_kelas/README.md similarity index 100% rename from object_oriented_programming/basic_oop/02_mewarisi_kelas/README.md rename to object_oriented/basic_oop/02_mewarisi_kelas/README.md diff --git a/object_oriented_programming/intermediate/README.md b/object_oriented/intermediate/README.md similarity index 100% rename from object_oriented_programming/intermediate/README.md rename to object_oriented/intermediate/README.md diff --git a/object_oriented_programming/intermediate/abstraksi/README.md b/object_oriented/intermediate/abstraksi/README.md similarity index 100% rename from object_oriented_programming/intermediate/abstraksi/README.md rename to object_oriented/intermediate/abstraksi/README.md diff --git a/object_oriented_programming/intermediate/abstraksi/abstraksi.py b/object_oriented/intermediate/abstraksi/abstraksi.py similarity index 100% rename from object_oriented_programming/intermediate/abstraksi/abstraksi.py rename to object_oriented/intermediate/abstraksi/abstraksi.py diff --git a/object_oriented_programming/intermediate/encapsulation/README.md b/object_oriented/intermediate/encapsulation/README.md similarity index 100% rename from object_oriented_programming/intermediate/encapsulation/README.md rename to object_oriented/intermediate/encapsulation/README.md diff --git a/object_oriented_programming/intermediate/encapsulation/encapsulation.py b/object_oriented/intermediate/encapsulation/encapsulation.py similarity index 100% rename from object_oriented_programming/intermediate/encapsulation/encapsulation.py rename to object_oriented/intermediate/encapsulation/encapsulation.py diff --git a/object_oriented_programming/intermediate/encapsulation/encapsulation2.py b/object_oriented/intermediate/encapsulation/encapsulation2.py similarity index 100% rename from object_oriented_programming/intermediate/encapsulation/encapsulation2.py rename to object_oriented/intermediate/encapsulation/encapsulation2.py diff --git a/object_oriented_programming/intermediate/inheritance/README.md b/object_oriented/intermediate/inheritance/README.md similarity index 100% rename from object_oriented_programming/intermediate/inheritance/README.md rename to object_oriented/intermediate/inheritance/README.md diff --git a/object_oriented_programming/intermediate/inheritance/inheritance.py b/object_oriented/intermediate/inheritance/inheritance.py similarity index 100% rename from object_oriented_programming/intermediate/inheritance/inheritance.py rename to object_oriented/intermediate/inheritance/inheritance.py diff --git a/object_oriented_programming/intermediate/polimorfis/README.md b/object_oriented/intermediate/polimorfis/README.md similarity index 100% rename from object_oriented_programming/intermediate/polimorfis/README.md rename to object_oriented/intermediate/polimorfis/README.md diff --git a/object_oriented_programming/intermediate/polimorfis/polimorfisme_kelas.py b/object_oriented/intermediate/polimorfis/polimorfisme_kelas.py similarity index 100% rename from object_oriented_programming/intermediate/polimorfis/polimorfisme_kelas.py rename to object_oriented/intermediate/polimorfis/polimorfisme_kelas.py diff --git a/object_oriented_programming/intermediate/polimorfis/polimorfisme_sederhana.py b/object_oriented/intermediate/polimorfis/polimorfisme_sederhana.py similarity index 100% rename from object_oriented_programming/intermediate/polimorfis/polimorfisme_sederhana.py rename to object_oriented/intermediate/polimorfis/polimorfisme_sederhana.py diff --git a/other/composite_number.py b/other/composite_number.py new file mode 100644 index 00000000..a18dfda5 --- /dev/null +++ b/other/composite_number.py @@ -0,0 +1,82 @@ +# Composite number adalah angka yang bukan prima +# https://en.wikipedia.org/wiki/Composite_number +import math + + +def compositer_number(number: int) -> int | str: + """ + Fungsi ini membuat daftar compositer number sesuai range + tertentu. + + >>> compositer_number(2) + 'Bukan angka compositer' + >>> compositer_number(10) + [4, 6, 8, 9, 10] + """ + bukan = "Bukan angka compositer" + if number < 4: + return bukan + + list_number = [False] * (number + 1) + p = 2 + + while p * p <= number: + if not list_number[p]: + + for i in range(p * p, number + 1, p): + list_number[i] = True + + p += 1 + + result = [] + + for p in range(4, number + 1): + if list_number[p]: + result.append(p) + + return result + + +def is_compositor(number: int) -> str: + """ + Fungsi ini mengecek apakah bilangan ini termasuk compositor + atau tidak. + + >>> is_compositor(8) + 'Angka compositor' + >>> is_compositor(6) + 'Angka compositor' + >>> is_compositor(5) + 'Bukan Angka Compositor' + >>> is_compositor(7) + 'Bukan Angka Compositor' + + """ + benar, bukan = "Angka compositor", "Bukan Angka Compositor" + if number < 4: + return bukan + + for i in range(2, int(math.sqrt(number)) + 1): + if number % i == 0: + return benar + + return bukan + + +def main(args=None): + import doctest + + doctest.testmod() + + # sample test + print(compositer_number(2)) # Bukan angka compositer + print(compositer_number(10)) # [4, 6, 8, 9, 10] + print("\n") + print(is_compositor(8)) # Angka Compositor + print(is_compositor(6)) # Angka Compositor + print(is_compositor(5)) # Bukan Angka Compositor + print(is_compositor(7)) # Bukan Angka Compositor + + +if __name__ == "__main__": + main() diff --git a/other/happy_number.py b/other/happy_number.py new file mode 100644 index 00000000..45d105b6 --- /dev/null +++ b/other/happy_number.py @@ -0,0 +1,62 @@ +# Mengecek apakah angka adalah sebuah happy number atau sad number +# https://en.wikipedia.org/wiki/Happy_number +def sum_digit(number): + value_digit = 0 + while number > 0: + digit = number % 10 + value_digit += digit * digit + number = number // 10 + return value_digit + + +def happy_or_sad(number) -> str: + """ + Happy number adalah sebuah angka yang dimana nanti akan kembali + menjadi satu jika di lakukan penjumlahan kuadrat. + + 13 = 1^2 + 3^2 = 10 = 1^2 + 0^2 = 1 -> Happy Number + 4 = 4^2 = 16 = 1^2 + 6^2 = 37 ... 2^2 + 0 = 4 -> Sad Number + + >>> happy_or_sad(23) + 'happy number' + >>> happy_or_sad(44) + 'happy number' + >>> happy_or_sad(8) + 'sad number' + >>> happy_or_sad(20) + 'sad number' + """ + set_value = set() + happy, sad = "happy number", "sad number" + while True: + if number == 1: + return str(happy) + + number = sum_digit(number) + + if number in set_value: + return str(sad) + + set_value.add(number) + + +def main(args=None): + import doctest + + doctest.testmod() + + # sample case + happy_numbers = [1, 7, 23, 31, 44] + unhappy_numbers = [2, 3, 8, 20, 4] + + for i in happy_numbers: + print(happy_or_sad(i)) + + print("\n") + + for i in unhappy_numbers: + print(happy_or_sad(i)) + + +if __name__ == "__main__": + main() diff --git a/other/kaprekar_number.py b/other/kaprekar_number.py new file mode 100644 index 00000000..c6d9c4f6 --- /dev/null +++ b/other/kaprekar_number.py @@ -0,0 +1,61 @@ +# mengecek apakah bilangan apakah bilangan itu masuk kaprekar +# https://en.wikipedia.org/wiki/Kaprekar_number +import math + + +def kaprekar_number(number: int) -> str: + """ + Angka kaprekar adalah angka yang yang di kuadratkan, + dan di pisahmenjadi dua bagian dan di jumlahkan lagi + maka akat menjadi angka itu kembali. + + >>> kaprekar_number(45) + 'Angka Kaprekar' + >>> kaprekar_number(9) + 'Angka Kaprekar' + >>> kaprekar_number(5) + 'Bukan Angka Kaprekar' + >>> kaprekar_number(10) + 'Bukan Angka Kaprekar' + + """ + benar, bukan = "Angka Kaprekar", "Bukan Angka Kaprekar" + if number == 1: + return benar + + square_number = number * number + + cout_d = 0 + while not square_number == 0: + cout_d += 1 + square_number = square_number // 10 + + square_number = number * number + + r_digits = 0 + while r_digits < cout_d: + r_digits += 1 + eq_parts = math.pow(10, r_digits) + + if eq_parts == number: + continue + + jumlah = square_number // eq_parts + square_number % eq_parts + if jumlah == number: + return benar + + return bukan + + +def main(args=None): + import doctest + + doctest.testmod() + + +if __name__ == "__main__": + # sampel case + print(kaprekar_number(45)) # Angka Kaprekar + print(kaprekar_number(9)) # Angka Kaprekar + print(kaprekar_number(5)) # Bukan Angka Kaprekar + print(kaprekar_number(10)) # Bukan Angka Kaprekar diff --git a/other/krisnamurtyCheck.py b/other/krisnamurtyCheck.py new file mode 100644 index 00000000..aa867824 --- /dev/null +++ b/other/krisnamurtyCheck.py @@ -0,0 +1,42 @@ +# Mengecek apakah krisnamurty atau bukan +from math import factorial + + +def krisnamurty(number: int) -> int | str: + """ + Angka Krisnamurty adalah angka factorial yang setiap digitnya + sama dengan factorial nya. + + contoh : + 145! = 1! + 4! + 5! -> Angka Krisnamurty + + >>> krisnamurty(145) + 'Angka Krisnamurty' + >>> krisnamurty(1) + 'Angka Krisnamurty' + >>> krisnamurty(123) + 'Bukan Angka Krisnamuty' + + """ + error = "Masukkan Angka dengan benar" + benar, bukan = "Angka Krisnamurty", "Bukan Angka Krisnamuty" + if not isinstance(number, int) or number < 0: + return error + else: + total = sum(factorial(int(d)) for d in str(number)) + return benar if total == number else bukan + + +def main(args=None): + import doctest + + doctest.testmod() + + # sample case + print(krisnamurty(145)) # Angka Krisnamurty + print(krisnamurty(1)) # Angka Krisnamurty + print(krisnamurty(123)) # Bukan Angka Krisnamuty + + +if __name__ == "__main__": + main() diff --git a/other/logic_gate.py b/other/logic_gate.py new file mode 100644 index 00000000..4abc8413 --- /dev/null +++ b/other/logic_gate.py @@ -0,0 +1,200 @@ +# Program sedergana untuk membuat gerbang logika +# https://en.wikipedia.org/wiki/Logic_gate + + +def NOT_gate(input_1: int) -> int | str: + """ + NOT gate adalah gerbang logika yang menghasilkan 0 + jika input satu dan begitu juga sebaliknya. + + >>> NOT_gate(1) + 0 + >>> NOT_gate(0) + 1 + + """ + error = "angka hanya satu dan nol" + if input_1 == 1: + return 0 + elif input_1 == 0: + return 1 + else: + return error + + +def OR_gate(int_1: int, int_2: int) -> int | str: + """ + OR gate adalah gerbang yang menghasilkan 0 jika dua + input 0. + + >>> OR_gate(0,0) + 0 + >>> OR_gate(0,1) + 1 + >>> OR_gate(1,0) + 1 + >>> OR_gate(1,1) + 1 + >>> OR_gate(3,0) + 'angka hanya satu dan nol' + + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 0 + elif int_1 == 1 and int_2 == 0: + return 1 + elif int_1 == 0 and int_2 == 1: + return 1 + elif int_1 == 1 and int_2 == 1: + return 1 + else: + return error + + +def AND_gate(int_1: int, int_2: int) -> int | str: + """ + AND gate adalah gerbang yang menghasilkan 1 jika dua + input 1. + + >>> AND_gate(0,0) + 0 + >>> AND_gate(0,1) + 0 + >>> AND_gate(1,0) + 0 + >>> AND_gate(1,1) + 1 + >>> NAND_gate(3,0) + 'angka hanya satu dan nol' + + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 0 + elif int_1 == 1 and int_2 == 0: + return 0 + elif int_1 == 0 and int_2 == 1: + return 0 + elif int_1 == 1 and int_2 == 1: + return 1 + else: + return error + + +def NAND_gate(int_1: int, int_2: int) -> int | str: + """ + NAND gate adalah gerbang yang menghasilkan 0 jika dua + input 1. + + >>> NAND_gate(0,0) + 1 + >>> NAND_gate(0,1) + 1 + >>> NAND_gate(1,0) + 1 + >>> NAND_gate(1,1) + 0 + >>> NAND_gate(3,0) + 'angka hanya satu dan nol' + + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 1 + elif int_1 == 1 and int_2 == 0: + return 1 + elif int_1 == 0 and int_2 == 1: + return 1 + elif int_1 == 1 and int_2 == 1: + return 0 + else: + return error + + +def NOR_GATE(int_1: int, int_2: int) -> int | str: + """ + NOR gate adalah gerbang yang menghasilkan 1 jika dua + input 0. + + >>> NAND_gate(0,0) + 1 + >>> NAND_gate(0,1) + 1 + >>> NAND_gate(1,0) + 1 + >>> NAND_gate(1,1) + 0 + >>> NAND_gate(3,0) + 'angka hanya satu dan nol' + + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 1 + elif int_1 == 1 and int_2 == 0: + return 0 + elif int_1 == 0 and int_2 == 1: + return 0 + elif int_1 == 1 and int_2 == 1: + return 0 + else: + return error + + +def XOR_gate(int_1: int, int_2: int) -> int | str: + """ + XOR gate adalah gerbang yang akan menghasilkan angka 1 jika + input nya berlawanan. + >>> XOR_gate(0,0) + 0 + >>> XOR_gate(1,0) + 1 + >>> XOR_gate(0,1) + 1 + >>> XOR_gate(1,1) + 0 + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 0 + elif int_1 == 1 and int_2 == 0: + return 1 + elif int_1 == 0 and int_2 == 1: + return 1 + elif int_1 == 1 and int_2 == 1: + return 0 + else: + return error + + +def XNOR_gate(int_1: int, int_2: int) -> int | str: + """ + XNOR gate adalah gerbang yang yang akan menghasilkan 1 jika + inputnya sama. + >>> XNOR_gate(0,0) + 1 + >>> XNOR_gate(1,0) + 0 + >>> XNOR_gate(0,1) + 0 + >>> XNOR_gate(1,1) + 1 + """ + error = "angka hanya satu dan nol" + if int_1 == 0 and int_2 == 0: + return 1 + elif int_1 == 1 and int_2 == 0: + return 0 + elif int_1 == 0 and int_2 == 1: + return 0 + elif int_1 == 1 and int_2 == 1: + return 1 + else: + return error + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/other/lucky_number.py b/other/lucky_number.py new file mode 100644 index 00000000..571b4560 --- /dev/null +++ b/other/lucky_number.py @@ -0,0 +1,65 @@ +# Algoritma untuk mengecek apakah bilangan itu lucky number +# https://en.wikipedia.org/wiki/Lucky_number +def is_lucky_number(number): + """ + Lucky number adalah angka yang selamat dari persortiran + angka berdasarkan posisi mirip Sieve. + + >>> is_lucky_number(1) + 'Angka Lucky' + >>> is_lucky_number(21) + 'Angka Lucky' + >>> is_lucky_number(9) + 'Angka Lucky' + >>> is_lucky_number(10) + 'Bukan Angka Lucky' + >>> is_lucky_number(1232) + 'Bukan Angka Lucky' + >>> is_lucky_number(700) + 'Bukan Angka Lucky' + + """ + benar, bukan = "Angka Lucky", "Bukan Angka Lucky" + MAX_NUMBER = 10000 + + idx = 1 + nbr = [] + for i in range(1, MAX_NUMBER): + if i % 2 != 0: + nbr.append(i) + + while idx < len(nbr): + step = nbr[idx] + if step > len(nbr): + break + + new_numbers = [] + pos = 1 + for val in nbr: + if pos % step != 0: + new_numbers.append(val) + pos += 1 + nbr = new_numbers + idx += 1 + + if number in nbr: + return benar + else: + return bukan + + +def main(args=None): + import doctest + + doctest.testmod() + + print(is_lucky_number(1)) # Angka Lucky + print(is_lucky_number(21)) # Angka Lucky + print(is_lucky_number(9)) # Angka Lucky + print(is_lucky_number(10)) # Bukan Angka Lucky + print(is_lucky_number(80)) # Bukan Angka Lucky + print(is_lucky_number(897)) # Bukan Angka Lucky + + +if __name__ == "__main__": + main() diff --git a/other/taxicab.py b/other/taxicab.py new file mode 100644 index 00000000..db264516 --- /dev/null +++ b/other/taxicab.py @@ -0,0 +1,55 @@ +# Bilangan Taxicab adalah bilangan yang dapat dinyatakan sebagai jumlah +# dua kubus bilangan bulat positif dengan lebih dari satu cara berbeda. +# https://en.wikipedia.org/wiki/Taxicab_number +from array import array + + +def taxi_cab(x): + """ + Fungsi ini akan menghitung nilai kubus dari 0 sampai x-1 untuk menciptakan pasangan + angka (a, b), lalu dihitung a^3 + b^3. Jika hasil penjumlahan muncul sekali, maka + akan disimpan sebagai bilangan Taxicab. + + >>> taxi_cab(10) + [] + >>> taxi_cab(20) + [1729, 4104] + >>> taxi_cab(30) + [1729, 4104, 13832, 20683] + >>> taxi_cab(40) + [1729, 4104, 13832, 20683, 32832, 39312, 40033, 46683, 64232] + """ + cubes = array("i", [i**3 for i in range(0, x)]) + dict_sum_pairs = {} + raman = set() + + for a in range(0, x): + for b in range(a + 1, x): + a3, b3 = cubes[a], cubes[b] + + sum_pairs = a3 + b3 + + if sum_pairs not in dict_sum_pairs: + dict_sum_pairs[sum_pairs] = (a, b) + else: + raman.add(sum_pairs) + return sorted(raman) + + +def main(args=None): + import doctest + + doctest.testmod() + # base case + print(taxi_cab(10)) + # output = [] + print(taxi_cab(20)) + # output = [1729, 4104] + print(taxi_cab(30)) + # output = [1729, 4104, 13832, 20683] + print(taxi_cab(40)) + # output = [1729, 4104, 13832, 20683, 32832, 39312, 40033, 46683, 64232] + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..26370db5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[project] +name = "python-bellshade" +version = "1.0.0" +description = "Repositori untuk belajar pemograman dalam bahasa indonesia" +readme = "README.md" +requires-python = ">=3.13" +dependencies = [ + "beautifulsoup4", + "fake_useragent", + "keras", + "lxml", + "matplotlib", + "numpy", + "opencv-python", + "pandas", + "pillow", + "pre-commit>=4.1.0", + "projectq", + "pytest>=9.0.1", + "qiskit", + "requests", + "scikit-fuzzy", + "scikit-learn", + "statsmodels", + "sympy", + "tensorflow", + "types-requests", + "xgboost", +] diff --git a/pytest.ini b/pytest.ini index ff53cfe3..51d9ec57 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] -adopts = --duration=10 +addopts = --doctest-modules --durations=10 +doctest_encoding = latin1 \ No newline at end of file diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py index 1e14d93f..1a53a309 100755 --- a/scripts/build_directory_md.py +++ b/scripts/build_directory_md.py @@ -7,6 +7,18 @@ def good_file_paths(top_dir: str = ".") -> Iterator[str]: + """ + Fungsi menghasilkan path file yang memenuhi kriteria tertentu + dari direktori yang diberikan. + + Parameter: + - top_dir (str): direktori root tempat pencarian dimulai. + Default adalah direktori saat ini ("."). + + Return: + - (Iterator[str]): path file (relatif terhadap `top_dir`) + + """ for dir_path, dir_names, filenames in os.walk(top_dir): dir_names[:] = [d for d in dir_names if d != "scripts" and d[0] not in "._"] for filename in filenames: @@ -16,7 +28,7 @@ def good_file_paths(top_dir: str = ".") -> Iterator[str]: yield os.path.join(dir_path, filename).lstrip("./") -def md_prefix(i): +def md_prefix(i: int) -> str: return f"{i * ' '}*" if i else "\n##" diff --git a/struktur_data/tree/binary_search_tree/binary_tree_path_sum.py b/struktur_data/tree/binary_search_tree/binary_tree_path_sum.py index 3c8ce875..e01f06d5 100644 --- a/struktur_data/tree/binary_search_tree/binary_tree_path_sum.py +++ b/struktur_data/tree/binary_search_tree/binary_tree_path_sum.py @@ -40,6 +40,7 @@ class BinaryTreePathSum: >>> BinaryTreePathSum().path_sum(tree, 8) 2 """ + target: int def __init__(self) -> None: diff --git a/struktur_data/tree/fenwick_tree.py b/struktur_data/tree/fenwick_tree.py new file mode 100644 index 00000000..10aa5232 --- /dev/null +++ b/struktur_data/tree/fenwick_tree.py @@ -0,0 +1,180 @@ +from copy import deepcopy + + +class FenwickTree: + """ + implementasi dasar dari fenwick tree + + informasi lebih lanjut tentang fenwick tree + + https://en.wikipedia.org/wiki/Fenwick_tree + """ + + def __init__(self, arr: list[int] | None = None, ukuran: int | None = None) -> None: + """ + konstructor untuk fenwick tree + + Parameter: + arr (list): list elemen untuk inisialisasi awal + ukuran (int): ukuran tree jika arr tidak diberikan + """ + if arr is None and ukuran is not None: + self.ukuran = ukuran + self.pohon = [0] * ukuran + elif arr is not None: + self.inisialisasi(arr) + else: + raise ValueError("harus ada salah satu antara arr atau ukuran") + + def inisialisasi(self, arr: list[int]) -> None: + """ + inisialisasi pohon fenwick berdasarkan arr dalam waktu O(N) + + Parameter: + arr (list): list elemen untuk inisialisasi + """ + self.ukuran = len(arr) + self.pohon = deepcopy(arr) + for i in range(1, self.ukuran): + j = self.berikutnya(i) + if j < self.ukuran: + self.pohon[i] += self.pohon[i] + + def ambil_array(self) -> list[int]: + """ + dapatin array asli dari fenwick tree dalam waktu O(N) + + Return: + (list): array sebelum dikonversi ke tree + """ + arr = self.pohon[:] + for i in range(self.ukuran - 1, 0, -1): + j = self.berikutnya(i) + if j < self.ukuran: + arr[j] -= arr[i] + return arr + + @staticmethod + def berikutnya(index: int) -> int: + return index + (index & (-index)) + + @staticmethod + def sebelumnya(index: int) -> int: + return index - (index & (-index)) + + def tambah(self, index: int, nilai: int) -> None: + """ + menambahkan nilai ke indeks tertentu dalam waktu + + Parameter: + index (int): indeks yang akan ditambahkan nilai + nilai (int): nilai yang akan ditambahkan + """ + if index == 0: + self.pohon[0] += nilai + return + while index < self.ukuran: + self.pohon[index] += nilai + index = self.berikutnya(index) + + def perbarui(self, index: int, nilai: int) -> None: + """ + mengganti nilai pada suatu indeks dalam waktu O(log N) + + Parameter: + index (int): indeks yang akan diubah nilainya + nilai (int): nilai baru yang akan diset + """ + self.tambah(index, nilai - self.ambil(index)) + + def jumlah_awal(self, batas_kanan: int) -> int: + """ + jumlah semua elemen dari indeks 0 hinggan batas_kanan - 1 dalam waktu O(log N) + + Parameter: + batas_kanan (int): batas akhir (tidak termasuk) + + Return: + (int): jumlah total dari elemen-elemen dalam rentang tersebut + """ + if batas_kanan == 0: + return 0 + hasil = self.pohon[0] + batas_kanan -= 1 + while batas_kanan > 0: + hasil += self.pohon[batas_kanan] + batas_kanan = self.sebelumnya(batas_kanan) + return hasil + + def tanya(self, batas_kiri: int, batas_kanan: int) -> int: + """ + cek jumlah elemen dari batas_kiri hinggan batas_kanan - 1 dalam waktu O(log N) + + Parameter: + batas_kiri (int): batas kiri + batas_kanan (int): batas kanan + + Return: + (int): jumlah + """ + return self.jumlah_awal(batas_kanan) - self.jumlah_awal(batas_kiri) + + def ambil(self, index: int) -> int: + """ + mendapatkan nilai pada indeks tertentu dalam waktu O(log N) + + Parameter: + index (int): indeks elemen yang ingin diambil + + Return: + (int): nilai elemen pada indeks tersebut + + Contoh: + >>> a = [i for i in range(128)] + >>> f = FenwickTree(a) + >>> res = True + >>> for i in range(len(a)): + ... res = res and f.ambil(i) == a[i] + >>> res + True + """ + return self.tanya(index, index + 1) + + def cari_indeks(self, nilai: int) -> int: + """ + cari indeks terbesar dengan jumlah awal <= nilai dalam waktu O(log N) + + Parameter: + nilai (int): nilai yang dicari indeksnya + + Return: + -1: jika nilai lebih kecil dari semua jumlah awal + (int): indeks terbesar dengan jumlah awal <= nilai + + Contoh: + >>> f = FenwickTree([1, 2, 0, 3, 0, 5]) + >>> f.cari_indeks(0) + -1 + >>> f.cari_indeks(11) + 5 + """ + nilai -= self.pohon[0] + if nilai < 0: + return -1 + j = 1 + while j * 2 < self.ukuran: + j *= 2 + + i = 0 + while j > 0: + if i + j < self.ukuran and self.pohon[i + j] <= nilai: + nilai -= self.pohon[i * j] + i += j + j //= 2 + return i + + +if __name__ == "__main__": + import doctest + + doctest.testmod() diff --git a/uv.lock b/uv.lock new file mode 100644 index 00000000..3cf9dbf4 --- /dev/null +++ b/uv.lock @@ -0,0 +1,1364 @@ +version = 1 +revision = 3 +requires-python = ">=3.13" +resolution-markers = [ + "sys_platform == 'darwin'", + "platform_machine == 'aarch64' and sys_platform == 'linux'", + "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')", +] + +[[package]] +name = "absl-py" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7a/8f/fc001b92ecc467cc32ab38398bd0bfb45df46e7523bf33c2ad22a505f06e/absl-py-2.1.0.tar.gz", hash = "sha256:7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff", size = 118055, upload-time = "2024-01-16T22:14:26.154Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a2/ad/e0d3c824784ff121c03cc031f944bc7e139a8f1870ffd2845cc2dd76f6c4/absl_py-2.1.0-py3-none-any.whl", hash = "sha256:526a04eadab8b4ee719ce68f204172ead1027549089702d99b9059f129ff1308", size = 133706, upload-time = "2024-01-16T22:14:24.055Z" }, +] + +[[package]] +name = "astunparse" +version = "1.6.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, + { name = "wheel" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/af/4182184d3c338792894f34a62672919db7ca008c89abee9b564dd34d8029/astunparse-1.6.3.tar.gz", hash = "sha256:5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872", size = 18290, upload-time = "2019-12-22T18:12:13.129Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2b/03/13dde6512ad7b4557eb792fbcf0c653af6076b81e5941d36ec61f7ce6028/astunparse-1.6.3-py2.py3-none-any.whl", hash = "sha256:c2652417f2c8b5bb325c885ae329bdf3f86424075c4fd1a128674bc6fba4b8e8", size = 12732, upload-time = "2019-12-22T18:12:11.297Z" }, +] + +[[package]] +name = "beautifulsoup4" +version = "4.13.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "soupsieve" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f0/3c/adaf39ce1fb4afdd21b611e3d530b183bb7759c9b673d60db0e347fd4439/beautifulsoup4-4.13.3.tar.gz", hash = "sha256:1bd32405dacc920b42b83ba01644747ed77456a65760e285fbc47633ceddaf8b", size = 619516, upload-time = "2025-02-04T20:05:01.681Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f9/49/6abb616eb3cbab6a7cca303dc02fdf3836de2e0b834bf966a7f5271a34d8/beautifulsoup4-4.13.3-py3-none-any.whl", hash = "sha256:99045d7d3f08f91f0d656bc9b7efbae189426cd913d830294a15eefa0ea4df16", size = 186015, upload-time = "2025-02-04T20:05:03.729Z" }, +] + +[[package]] +name = "certifi" +version = "2025.1.31" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1c/ab/c9f1e32b7b1bf505bf26f0ef697775960db7932abeb7b516de930ba2705f/certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651", size = 167577, upload-time = "2025-01-31T02:16:47.166Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/fc/bce832fd4fd99766c04d1ee0eead6b0ec6486fb100ae5e74c1d91292b982/certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe", size = 166393, upload-time = "2025-01-31T02:16:45.015Z" }, +] + +[[package]] +name = "cfgv" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/11/74/539e56497d9bd1d484fd863dd69cbbfa653cd2aa27abfe35653494d85e94/cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560", size = 7114, upload-time = "2023-08-12T20:38:17.776Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9", size = 7249, upload-time = "2023-08-12T20:38:16.269Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.4.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357/charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3", size = 123188, upload-time = "2024-12-24T18:12:35.43Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/94/ce8e6f63d18049672c76d07d119304e1e2d7c6098f0841b51c666e9f44a0/charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda", size = 195698, upload-time = "2024-12-24T18:11:05.834Z" }, + { url = "https://files.pythonhosted.org/packages/24/2e/dfdd9770664aae179a96561cc6952ff08f9a8cd09a908f259a9dfa063568/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313", size = 140162, upload-time = "2024-12-24T18:11:07.064Z" }, + { url = "https://files.pythonhosted.org/packages/24/4e/f646b9093cff8fc86f2d60af2de4dc17c759de9d554f130b140ea4738ca6/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9", size = 150263, upload-time = "2024-12-24T18:11:08.374Z" }, + { url = "https://files.pythonhosted.org/packages/5e/67/2937f8d548c3ef6e2f9aab0f6e21001056f692d43282b165e7c56023e6dd/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b", size = 142966, upload-time = "2024-12-24T18:11:09.831Z" }, + { url = "https://files.pythonhosted.org/packages/52/ed/b7f4f07de100bdb95c1756d3a4d17b90c1a3c53715c1a476f8738058e0fa/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11", size = 144992, upload-time = "2024-12-24T18:11:12.03Z" }, + { url = "https://files.pythonhosted.org/packages/96/2c/d49710a6dbcd3776265f4c923bb73ebe83933dfbaa841c5da850fe0fd20b/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f", size = 147162, upload-time = "2024-12-24T18:11:13.372Z" }, + { url = "https://files.pythonhosted.org/packages/b4/41/35ff1f9a6bd380303dea55e44c4933b4cc3c4850988927d4082ada230273/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd", size = 140972, upload-time = "2024-12-24T18:11:14.628Z" }, + { url = "https://files.pythonhosted.org/packages/fb/43/c6a0b685fe6910d08ba971f62cd9c3e862a85770395ba5d9cad4fede33ab/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2", size = 149095, upload-time = "2024-12-24T18:11:17.672Z" }, + { url = "https://files.pythonhosted.org/packages/4c/ff/a9a504662452e2d2878512115638966e75633519ec11f25fca3d2049a94a/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886", size = 152668, upload-time = "2024-12-24T18:11:18.989Z" }, + { url = "https://files.pythonhosted.org/packages/6c/71/189996b6d9a4b932564701628af5cee6716733e9165af1d5e1b285c530ed/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601", size = 150073, upload-time = "2024-12-24T18:11:21.507Z" }, + { url = "https://files.pythonhosted.org/packages/e4/93/946a86ce20790e11312c87c75ba68d5f6ad2208cfb52b2d6a2c32840d922/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd", size = 145732, upload-time = "2024-12-24T18:11:22.774Z" }, + { url = "https://files.pythonhosted.org/packages/cd/e5/131d2fb1b0dddafc37be4f3a2fa79aa4c037368be9423061dccadfd90091/charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407", size = 95391, upload-time = "2024-12-24T18:11:24.139Z" }, + { url = "https://files.pythonhosted.org/packages/27/f2/4f9a69cc7712b9b5ad8fdb87039fd89abba997ad5cbe690d1835d40405b0/charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971", size = 102702, upload-time = "2024-12-24T18:11:26.535Z" }, + { url = "https://files.pythonhosted.org/packages/0e/f6/65ecc6878a89bb1c23a086ea335ad4bf21a588990c3f535a227b9eea9108/charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85", size = 49767, upload-time = "2024-12-24T18:12:32.852Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "contourpy" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/25/c2/fc7193cc5383637ff390a712e88e4ded0452c9fbcf84abe3de5ea3df1866/contourpy-1.3.1.tar.gz", hash = "sha256:dfd97abd83335045a913e3bcc4a09c0ceadbe66580cf573fe961f4a825efa699", size = 13465753, upload-time = "2024-11-12T11:00:59.118Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9a/e7/de62050dce687c5e96f946a93546910bc67e483fe05324439e329ff36105/contourpy-1.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a761d9ccfc5e2ecd1bf05534eda382aa14c3e4f9205ba5b1684ecfe400716ef2", size = 271548, upload-time = "2024-11-12T10:55:32.228Z" }, + { url = "https://files.pythonhosted.org/packages/78/4d/c2a09ae014ae984c6bdd29c11e74d3121b25eaa117eca0bb76340efd7e1c/contourpy-1.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:523a8ee12edfa36f6d2a49407f705a6ef4c5098de4f498619787e272de93f2d5", size = 255576, upload-time = "2024-11-12T10:55:36.246Z" }, + { url = "https://files.pythonhosted.org/packages/ab/8a/915380ee96a5638bda80cd061ccb8e666bfdccea38d5741cb69e6dbd61fc/contourpy-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece6df05e2c41bd46776fbc712e0996f7c94e0d0543af1656956d150c4ca7c81", size = 306635, upload-time = "2024-11-12T10:55:41.904Z" }, + { url = "https://files.pythonhosted.org/packages/29/5c/c83ce09375428298acd4e6582aeb68b1e0d1447f877fa993d9bf6cd3b0a0/contourpy-1.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:573abb30e0e05bf31ed067d2f82500ecfdaec15627a59d63ea2d95714790f5c2", size = 345925, upload-time = "2024-11-12T10:55:47.206Z" }, + { url = "https://files.pythonhosted.org/packages/29/63/5b52f4a15e80c66c8078a641a3bfacd6e07106835682454647aca1afc852/contourpy-1.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a9fa36448e6a3a1a9a2ba23c02012c43ed88905ec80163f2ffe2421c7192a5d7", size = 318000, upload-time = "2024-11-12T10:55:52.264Z" }, + { url = "https://files.pythonhosted.org/packages/9a/e2/30ca086c692691129849198659bf0556d72a757fe2769eb9620a27169296/contourpy-1.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ea9924d28fc5586bf0b42d15f590b10c224117e74409dd7a0be3b62b74a501c", size = 322689, upload-time = "2024-11-12T10:55:57.858Z" }, + { url = "https://files.pythonhosted.org/packages/6b/77/f37812ef700f1f185d348394debf33f22d531e714cf6a35d13d68a7003c7/contourpy-1.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5b75aa69cb4d6f137b36f7eb2ace9280cfb60c55dc5f61c731fdf6f037f958a3", size = 1268413, upload-time = "2024-11-12T10:56:13.328Z" }, + { url = "https://files.pythonhosted.org/packages/3f/6d/ce84e79cdd128542ebeb268f84abb4b093af78e7f8ec504676673d2675bc/contourpy-1.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:041b640d4ec01922083645a94bb3b2e777e6b626788f4095cf21abbe266413c1", size = 1326530, upload-time = "2024-11-12T10:56:30.07Z" }, + { url = "https://files.pythonhosted.org/packages/72/22/8282f4eae20c73c89bee7a82a19c4e27af9b57bb602ecaa00713d5bdb54d/contourpy-1.3.1-cp313-cp313-win32.whl", hash = "sha256:36987a15e8ace5f58d4d5da9dca82d498c2bbb28dff6e5d04fbfcc35a9cb3a82", size = 175315, upload-time = "2024-11-12T10:57:42.804Z" }, + { url = "https://files.pythonhosted.org/packages/e3/d5/28bca491f65312b438fbf076589dcde7f6f966b196d900777f5811b9c4e2/contourpy-1.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:a7895f46d47671fa7ceec40f31fae721da51ad34bdca0bee83e38870b1f47ffd", size = 220987, upload-time = "2024-11-12T10:57:46.365Z" }, + { url = "https://files.pythonhosted.org/packages/2f/24/a4b285d6adaaf9746e4700932f579f1a7b6f9681109f694cfa233ae75c4e/contourpy-1.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:9ddeb796389dadcd884c7eb07bd14ef12408aaae358f0e2ae24114d797eede30", size = 285001, upload-time = "2024-11-12T10:56:34.483Z" }, + { url = "https://files.pythonhosted.org/packages/48/1d/fb49a401b5ca4f06ccf467cd6c4f1fd65767e63c21322b29b04ec40b40b9/contourpy-1.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:19c1555a6801c2f084c7ddc1c6e11f02eb6a6016ca1318dd5452ba3f613a1751", size = 268553, upload-time = "2024-11-12T10:56:39.167Z" }, + { url = "https://files.pythonhosted.org/packages/79/1e/4aef9470d13fd029087388fae750dccb49a50c012a6c8d1d634295caa644/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:841ad858cff65c2c04bf93875e384ccb82b654574a6d7f30453a04f04af71342", size = 310386, upload-time = "2024-11-12T10:56:44.594Z" }, + { url = "https://files.pythonhosted.org/packages/b0/34/910dc706ed70153b60392b5305c708c9810d425bde12499c9184a1100888/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4318af1c925fb9a4fb190559ef3eec206845f63e80fb603d47f2d6d67683901c", size = 349806, upload-time = "2024-11-12T10:56:49.565Z" }, + { url = "https://files.pythonhosted.org/packages/31/3c/faee6a40d66d7f2a87f7102236bf4780c57990dd7f98e5ff29881b1b1344/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:14c102b0eab282427b662cb590f2e9340a9d91a1c297f48729431f2dcd16e14f", size = 321108, upload-time = "2024-11-12T10:56:55.013Z" }, + { url = "https://files.pythonhosted.org/packages/17/69/390dc9b20dd4bb20585651d7316cc3054b7d4a7b4f8b710b2b698e08968d/contourpy-1.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:05e806338bfeaa006acbdeba0ad681a10be63b26e1b17317bfac3c5d98f36cda", size = 327291, upload-time = "2024-11-12T10:56:59.897Z" }, + { url = "https://files.pythonhosted.org/packages/ef/74/7030b67c4e941fe1e5424a3d988080e83568030ce0355f7c9fc556455b01/contourpy-1.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4d76d5993a34ef3df5181ba3c92fabb93f1eaa5729504fb03423fcd9f3177242", size = 1263752, upload-time = "2024-11-12T10:57:14.79Z" }, + { url = "https://files.pythonhosted.org/packages/f0/ed/92d86f183a8615f13f6b9cbfc5d4298a509d6ce433432e21da838b4b63f4/contourpy-1.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:89785bb2a1980c1bd87f0cb1517a71cde374776a5f150936b82580ae6ead44a1", size = 1318403, upload-time = "2024-11-12T10:57:31.326Z" }, + { url = "https://files.pythonhosted.org/packages/b3/0e/c8e4950c77dcfc897c71d61e56690a0a9df39543d2164040301b5df8e67b/contourpy-1.3.1-cp313-cp313t-win32.whl", hash = "sha256:8eb96e79b9f3dcadbad2a3891672f81cdcab7f95b27f28f1c67d75f045b6b4f1", size = 185117, upload-time = "2024-11-12T10:57:34.735Z" }, + { url = "https://files.pythonhosted.org/packages/c1/31/1ae946f11dfbd229222e6d6ad8e7bd1891d3d48bde5fbf7a0beb9491f8e3/contourpy-1.3.1-cp313-cp313t-win_amd64.whl", hash = "sha256:287ccc248c9e0d0566934e7d606201abd74761b5703d804ff3df8935f523d546", size = 236668, upload-time = "2024-11-12T10:57:39.061Z" }, +] + +[[package]] +name = "cycler" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615, upload-time = "2023-10-07T05:32:18.335Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321, upload-time = "2023-10-07T05:32:16.783Z" }, +] + +[[package]] +name = "dill" +version = "0.3.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/70/43/86fe3f9e130c4137b0f1b50784dd70a5087b911fe07fa81e53e0c4c47fea/dill-0.3.9.tar.gz", hash = "sha256:81aa267dddf68cbfe8029c42ca9ec6a4ab3b22371d1c450abc54422577b4512c", size = 187000, upload-time = "2024-09-29T00:03:20.958Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/46/d1/e73b6ad76f0b1fb7f23c35c6d95dbc506a9c8804f43dda8cb5b0fa6331fd/dill-0.3.9-py3-none-any.whl", hash = "sha256:468dff3b89520b474c0397703366b7b95eebe6303f108adf9b19da1f702be87a", size = 119418, upload-time = "2024-09-29T00:03:19.344Z" }, +] + +[[package]] +name = "distlib" +version = "0.3.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0d/dd/1bec4c5ddb504ca60fc29472f3d27e8d4da1257a854e1d96742f15c1d02d/distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403", size = 613923, upload-time = "2024-10-09T18:35:47.551Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87", size = 468973, upload-time = "2024-10-09T18:35:44.272Z" }, +] + +[[package]] +name = "fake-useragent" +version = "2.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/a4/f8d204c20e7879c2c1fd1719095673f447a3111282bfe09c0a74a5ed5000/fake_useragent-2.0.3.tar.gz", hash = "sha256:af86a26ef8229efece8fed529b4aeb5b73747d889b60f01cd477b6f301df46e6", size = 194741, upload-time = "2024-12-10T20:00:38.03Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/11/4f/a639b1dbdc557241e702eefb931ba24ba235c84f8fffdca3e272f096c6af/fake_useragent-2.0.3-py3-none-any.whl", hash = "sha256:8bae50abb72c309a5b3ae2f01a0b82426613fd5c4e2a04dca9332399ec44daa1", size = 201110, upload-time = "2024-12-10T20:00:36.622Z" }, +] + +[[package]] +name = "filelock" +version = "3.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/9c/0b15fb47b464e1b663b1acd1253a062aa5feecb07d4e597daea542ebd2b5/filelock-3.17.0.tar.gz", hash = "sha256:ee4e77401ef576ebb38cd7f13b9b28893194acc20a8e68e18730ba9c0e54660e", size = 18027, upload-time = "2025-01-21T20:04:49.099Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/89/ec/00d68c4ddfedfe64159999e5f8a98fb8442729a63e2077eb9dcd89623d27/filelock-3.17.0-py3-none-any.whl", hash = "sha256:533dc2f7ba78dc2f0f531fc6c4940addf7b70a481e269a5a3b93be94ffbe8338", size = 16164, upload-time = "2025-01-21T20:04:47.734Z" }, +] + +[[package]] +name = "flatbuffers" +version = "25.2.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/30/eb5dce7994fc71a2f685d98ec33cc660c0a5887db5610137e60d8cbc4489/flatbuffers-25.2.10.tar.gz", hash = "sha256:97e451377a41262f8d9bd4295cc836133415cc03d8cb966410a4af92eb00d26e", size = 22170, upload-time = "2025-02-11T04:26:46.257Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b8/25/155f9f080d5e4bc0082edfda032ea2bc2b8fab3f4d25d46c1e9dd22a1a89/flatbuffers-25.2.10-py2.py3-none-any.whl", hash = "sha256:ebba5f4d5ea615af3f7fd70fc310636fbb2bbd1f566ac0a23d98dd412de50051", size = 30953, upload-time = "2025-02-11T04:26:44.484Z" }, +] + +[[package]] +name = "fonttools" +version = "4.56.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1c/8c/9ffa2a555af0e5e5d0e2ed7fdd8c9bef474ed676995bb4c57c9cd0014248/fonttools-4.56.0.tar.gz", hash = "sha256:a114d1567e1a1586b7e9e7fc2ff686ca542a82769a296cef131e4c4af51e58f4", size = 3462892, upload-time = "2025-02-07T13:46:29.026Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a5/55/f06b48d48e0b4ec3a3489efafe9bd4d81b6e0802ac51026e3ee4634e89ba/fonttools-4.56.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f20e2c0dfab82983a90f3d00703ac0960412036153e5023eed2b4641d7d5e692", size = 2735127, upload-time = "2025-02-07T13:44:59.966Z" }, + { url = "https://files.pythonhosted.org/packages/59/db/d2c7c9b6dd5cbd46f183e650a47403ffb88fca17484eb7c4b1cd88f9e513/fonttools-4.56.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f36a0868f47b7566237640c026c65a86d09a3d9ca5df1cd039e30a1da73098a0", size = 2272519, upload-time = "2025-02-07T13:45:03.891Z" }, + { url = "https://files.pythonhosted.org/packages/4d/a2/da62d779c34a0e0c06415f02eab7fa3466de5d46df459c0275a255cefc65/fonttools-4.56.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:62b4c6802fa28e14dba010e75190e0e6228513573f1eeae57b11aa1a39b7e5b1", size = 4762423, upload-time = "2025-02-07T13:45:07.034Z" }, + { url = "https://files.pythonhosted.org/packages/be/6a/fd4018e0448c8a5e12138906411282c5eab51a598493f080a9f0960e658f/fonttools-4.56.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a05d1f07eb0a7d755fbe01fee1fd255c3a4d3730130cf1bfefb682d18fd2fcea", size = 4834442, upload-time = "2025-02-07T13:45:10.6Z" }, + { url = "https://files.pythonhosted.org/packages/6d/63/fa1dec8efb35bc11ef9c39b2d74754b45d48a3ccb2cf78c0109c0af639e8/fonttools-4.56.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0073b62c3438cf0058488c002ea90489e8801d3a7af5ce5f7c05c105bee815c3", size = 4742800, upload-time = "2025-02-07T13:45:14.096Z" }, + { url = "https://files.pythonhosted.org/packages/dd/f4/963247ae8c73ccc4cf2929e7162f595c81dbe17997d1d0ea77da24a217c9/fonttools-4.56.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e2cad98c94833465bcf28f51c248aaf07ca022efc6a3eba750ad9c1e0256d278", size = 4963746, upload-time = "2025-02-07T13:45:17.479Z" }, + { url = "https://files.pythonhosted.org/packages/ea/e0/46f9600c39c644b54e4420f941f75fa200d9288c9ae171e5d80918b8cbb9/fonttools-4.56.0-cp313-cp313-win32.whl", hash = "sha256:d0cb73ccf7f6d7ca8d0bc7ea8ac0a5b84969a41c56ac3ac3422a24df2680546f", size = 2140927, upload-time = "2025-02-07T13:45:21.084Z" }, + { url = "https://files.pythonhosted.org/packages/27/6d/3edda54f98a550a0473f032d8050315fbc8f1b76a0d9f3879b72ebb2cdd6/fonttools-4.56.0-cp313-cp313-win_amd64.whl", hash = "sha256:62cc1253827d1e500fde9dbe981219fea4eb000fd63402283472d38e7d8aa1c6", size = 2186709, upload-time = "2025-02-07T13:45:23.719Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ff/44934a031ce5a39125415eb405b9efb76fe7f9586b75291d66ae5cbfc4e6/fonttools-4.56.0-py3-none-any.whl", hash = "sha256:1088182f68c303b50ca4dc0c82d42083d176cba37af1937e1a976a31149d4d14", size = 1089800, upload-time = "2025-02-07T13:46:26.415Z" }, +] + +[[package]] +name = "gast" +version = "0.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3c/14/c566f5ca00c115db7725263408ff952b8ae6d6a4e792ef9c84e77d9af7a1/gast-0.6.0.tar.gz", hash = "sha256:88fc5300d32c7ac6ca7b515310862f71e6fdf2c029bbec7c66c0f5dd47b6b1fb", size = 27708, upload-time = "2024-06-27T20:31:49.527Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/61/8001b38461d751cd1a0c3a6ae84346796a5758123f3ed97a1b121dfbf4f3/gast-0.6.0-py3-none-any.whl", hash = "sha256:52b182313f7330389f72b069ba00f174cfe2a06411099547288839c6cbafbd54", size = 21173, upload-time = "2024-07-09T13:15:15.615Z" }, +] + +[[package]] +name = "google-pasta" +version = "0.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/35/4a/0bd53b36ff0323d10d5f24ebd67af2de10a1117f5cf4d7add90df92756f1/google-pasta-0.2.0.tar.gz", hash = "sha256:c9f2c8dfc8f96d0d5808299920721be30c9eec37f2389f28904f454565c8a16e", size = 40430, upload-time = "2020-03-13T18:57:50.34Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/de/c648ef6835192e6e2cc03f40b19eeda4382c49b5bafb43d88b931c4c74ac/google_pasta-0.2.0-py3-none-any.whl", hash = "sha256:b32482794a366b5366a32c92a9a9201b107821889935a02b3e51f6b432ea84ed", size = 57471, upload-time = "2020-03-13T18:57:48.872Z" }, +] + +[[package]] +name = "grpcio" +version = "1.70.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/69/e1/4b21b5017c33f3600dcc32b802bb48fe44a4d36d6c066f52650c7c2690fa/grpcio-1.70.0.tar.gz", hash = "sha256:8d1584a68d5922330025881e63a6c1b54cc8117291d382e4fa69339b6d914c56", size = 12788932, upload-time = "2025-01-23T18:00:17.288Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/68/38/66d0f32f88feaf7d83f8559cd87d899c970f91b1b8a8819b58226de0a496/grpcio-1.70.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:aa573896aeb7d7ce10b1fa425ba263e8dddd83d71530d1322fd3a16f31257b4a", size = 5199218, upload-time = "2025-01-23T17:54:40.964Z" }, + { url = "https://files.pythonhosted.org/packages/c1/96/947df763a0b18efb5cc6c2ae348e56d97ca520dc5300c01617b234410173/grpcio-1.70.0-cp313-cp313-macosx_10_14_universal2.whl", hash = "sha256:d405b005018fd516c9ac529f4b4122342f60ec1cee181788249372524e6db429", size = 11445983, upload-time = "2025-01-23T17:54:43.527Z" }, + { url = "https://files.pythonhosted.org/packages/fd/5b/f3d4b063e51b2454bedb828e41f3485800889a3609c49e60f2296cc8b8e5/grpcio-1.70.0-cp313-cp313-manylinux_2_17_aarch64.whl", hash = "sha256:f32090238b720eb585248654db8e3afc87b48d26ac423c8dde8334a232ff53c9", size = 5663954, upload-time = "2025-01-23T17:54:47.532Z" }, + { url = "https://files.pythonhosted.org/packages/bd/0b/dab54365fcedf63e9f358c1431885478e77d6f190d65668936b12dd38057/grpcio-1.70.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dfa089a734f24ee5f6880c83d043e4f46bf812fcea5181dcb3a572db1e79e01c", size = 6304323, upload-time = "2025-01-23T17:54:50.036Z" }, + { url = "https://files.pythonhosted.org/packages/76/a8/8f965a7171ddd336ce32946e22954aa1bbc6f23f095e15dadaa70604ba20/grpcio-1.70.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f19375f0300b96c0117aca118d400e76fede6db6e91f3c34b7b035822e06c35f", size = 5910939, upload-time = "2025-01-23T17:54:52.455Z" }, + { url = "https://files.pythonhosted.org/packages/1b/05/0bbf68be8b17d1ed6f178435a3c0c12e665a1e6054470a64ce3cb7896596/grpcio-1.70.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:7c73c42102e4a5ec76608d9b60227d917cea46dff4d11d372f64cbeb56d259d0", size = 6631405, upload-time = "2025-01-23T17:54:55.808Z" }, + { url = "https://files.pythonhosted.org/packages/79/6a/5df64b6df405a1ed1482cb6c10044b06ec47fd28e87c2232dbcf435ecb33/grpcio-1.70.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:0a5c78d5198a1f0aa60006cd6eb1c912b4a1520b6a3968e677dbcba215fabb40", size = 6190982, upload-time = "2025-01-23T17:54:58.405Z" }, + { url = "https://files.pythonhosted.org/packages/42/aa/aeaac87737e6d25d1048c53b8ec408c056d3ed0c922e7c5efad65384250c/grpcio-1.70.0-cp313-cp313-win32.whl", hash = "sha256:fe9dbd916df3b60e865258a8c72ac98f3ac9e2a9542dcb72b7a34d236242a5ce", size = 3598359, upload-time = "2025-01-23T17:55:00.671Z" }, + { url = "https://files.pythonhosted.org/packages/1f/79/8edd2442d2de1431b4a3de84ef91c37002f12de0f9b577fb07b452989dbc/grpcio-1.70.0-cp313-cp313-win_amd64.whl", hash = "sha256:4119fed8abb7ff6c32e3d2255301e59c316c22d31ab812b3fbcbaf3d0d87cc68", size = 4293938, upload-time = "2025-01-23T17:55:02.821Z" }, +] + +[[package]] +name = "h5py" +version = "3.13.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/03/2e/a22d6a8bfa6f8be33e7febd985680fba531562795f0a9077ed1eb047bfb0/h5py-3.13.0.tar.gz", hash = "sha256:1870e46518720023da85d0895a1960ff2ce398c5671eac3b1a41ec696b7105c3", size = 414876, upload-time = "2025-02-18T16:04:01.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/60/43/f276f27921919a9144074320ce4ca40882fc67b3cfee81c3f5c7df083e97/h5py-3.13.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e520ec76de00943dd017c8ea3f354fa1d2f542eac994811943a8faedf2a7d5cb", size = 3358040, upload-time = "2025-02-18T16:03:20.579Z" }, + { url = "https://files.pythonhosted.org/packages/1b/86/ad4a4cf781b08d4572be8bbdd8f108bb97b266a14835c640dc43dafc0729/h5py-3.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e79d8368cd9295045956bfb436656bea3f915beaa11d342e9f79f129f5178763", size = 2892766, upload-time = "2025-02-18T16:03:26.831Z" }, + { url = "https://files.pythonhosted.org/packages/69/84/4c6367d6b58deaf0fa84999ec819e7578eee96cea6cbd613640d0625ed5e/h5py-3.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:56dd172d862e850823c4af02dc4ddbc308f042b85472ffdaca67f1598dff4a57", size = 4664255, upload-time = "2025-02-18T16:03:31.903Z" }, + { url = "https://files.pythonhosted.org/packages/fd/41/bc2df86b72965775f6d621e0ee269a5f3ac23e8f870abf519de9c7d93b4d/h5py-3.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:be949b46b7388074c5acae017fbbe3e5ba303fd9daaa52157fdfef30bbdacadd", size = 4927580, upload-time = "2025-02-18T16:03:36.429Z" }, + { url = "https://files.pythonhosted.org/packages/97/34/165b87ea55184770a0c1fcdb7e017199974ad2e271451fd045cfe35f3add/h5py-3.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:4f97ecde7ac6513b21cd95efdfc38dc6d19f96f6ca6f2a30550e94e551458e0a", size = 2940890, upload-time = "2025-02-18T16:03:41.037Z" }, +] + +[[package]] +name = "identify" +version = "2.6.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/fa/5eb460539e6f5252a7c5a931b53426e49258cde17e3d50685031c300a8fd/identify-2.6.8.tar.gz", hash = "sha256:61491417ea2c0c5c670484fd8abbb34de34cdae1e5f39a73ee65e48e4bb663fc", size = 99249, upload-time = "2025-02-22T17:54:42.151Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/8c/4bfcab2d8286473b8d83ea742716f4b79290172e75f91142bc1534b05b9a/identify-2.6.8-py2.py3-none-any.whl", hash = "sha256:83657f0f766a3c8d0eaea16d4ef42494b39b34629a4b3192a9d020d349b3e255", size = 99109, upload-time = "2025-02-22T17:54:40.088Z" }, +] + +[[package]] +name = "idna" +version = "3.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490, upload-time = "2024-09-15T18:07:39.745Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442, upload-time = "2024-09-15T18:07:37.964Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, +] + +[[package]] +name = "joblib" +version = "1.4.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/64/33/60135848598c076ce4b231e1b1895170f45fbcaeaa2c9d5e38b04db70c35/joblib-1.4.2.tar.gz", hash = "sha256:2382c5816b2636fbd20a09e0f4e9dad4736765fdfb7dca582943b9c1366b3f0e", size = 2116621, upload-time = "2024-05-02T12:15:05.765Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/91/29/df4b9b42f2be0b623cbd5e2140cafcaa2bef0759a00b7b70104dcfe2fb51/joblib-1.4.2-py3-none-any.whl", hash = "sha256:06d478d5674cbc267e7496a410ee875abd68e4340feff4490bcb7afb88060ae6", size = 301817, upload-time = "2024-05-02T12:15:00.765Z" }, +] + +[[package]] +name = "keras" +version = "3.12.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "absl-py" }, + { name = "h5py" }, + { name = "ml-dtypes" }, + { name = "namex" }, + { name = "numpy" }, + { name = "optree" }, + { name = "packaging" }, + { name = "rich" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9b/b8/8df141314a64a31d3a21762658826f716cdf4c261c7fcdb3f729958def55/keras-3.12.0.tar.gz", hash = "sha256:536e3f8385a05ae04e82e08715a1a59988578087e187b04cb0a6fad11743f07f", size = 1129187, upload-time = "2025-10-27T20:23:11.574Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/61/cc8be27bd65082440754be443b17b6f7c185dec5e00dfdaeab4f8662e4a8/keras-3.12.0-py3-none-any.whl", hash = "sha256:02b69e007d5df8042286c3bcc2a888539e3e487590ffb08f6be1b4354df50aa8", size = 1474424, upload-time = "2025-10-27T20:23:09.571Z" }, +] + +[[package]] +name = "kiwisolver" +version = "1.4.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/82/59/7c91426a8ac292e1cdd53a63b6d9439abd573c875c3f92c146767dd33faf/kiwisolver-1.4.8.tar.gz", hash = "sha256:23d5f023bdc8c7e54eb65f03ca5d5bb25b601eac4d7f1a042888a1f45237987e", size = 97538, upload-time = "2024-12-24T18:30:51.519Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/79/b3/e62464a652f4f8cd9006e13d07abad844a47df1e6537f73ddfbf1bc997ec/kiwisolver-1.4.8-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:1c8ceb754339793c24aee1c9fb2485b5b1f5bb1c2c214ff13368431e51fc9a09", size = 124156, upload-time = "2024-12-24T18:29:45.368Z" }, + { url = "https://files.pythonhosted.org/packages/8d/2d/f13d06998b546a2ad4f48607a146e045bbe48030774de29f90bdc573df15/kiwisolver-1.4.8-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:54a62808ac74b5e55a04a408cda6156f986cefbcf0ada13572696b507cc92fa1", size = 66555, upload-time = "2024-12-24T18:29:46.37Z" }, + { url = "https://files.pythonhosted.org/packages/59/e3/b8bd14b0a54998a9fd1e8da591c60998dc003618cb19a3f94cb233ec1511/kiwisolver-1.4.8-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:68269e60ee4929893aad82666821aaacbd455284124817af45c11e50a4b42e3c", size = 65071, upload-time = "2024-12-24T18:29:47.333Z" }, + { url = "https://files.pythonhosted.org/packages/f0/1c/6c86f6d85ffe4d0ce04228d976f00674f1df5dc893bf2dd4f1928748f187/kiwisolver-1.4.8-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:34d142fba9c464bc3bbfeff15c96eab0e7310343d6aefb62a79d51421fcc5f1b", size = 1378053, upload-time = "2024-12-24T18:29:49.636Z" }, + { url = "https://files.pythonhosted.org/packages/4e/b9/1c6e9f6dcb103ac5cf87cb695845f5fa71379021500153566d8a8a9fc291/kiwisolver-1.4.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ddc373e0eef45b59197de815b1b28ef89ae3955e7722cc9710fb91cd77b7f47", size = 1472278, upload-time = "2024-12-24T18:29:51.164Z" }, + { url = "https://files.pythonhosted.org/packages/ee/81/aca1eb176de671f8bda479b11acdc42c132b61a2ac861c883907dde6debb/kiwisolver-1.4.8-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:77e6f57a20b9bd4e1e2cedda4d0b986ebd0216236f0106e55c28aea3d3d69b16", size = 1478139, upload-time = "2024-12-24T18:29:52.594Z" }, + { url = "https://files.pythonhosted.org/packages/49/f4/e081522473671c97b2687d380e9e4c26f748a86363ce5af48b4a28e48d06/kiwisolver-1.4.8-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:08e77738ed7538f036cd1170cbed942ef749137b1311fa2bbe2a7fda2f6bf3cc", size = 1413517, upload-time = "2024-12-24T18:29:53.941Z" }, + { url = "https://files.pythonhosted.org/packages/8f/e9/6a7d025d8da8c4931522922cd706105aa32b3291d1add8c5427cdcd66e63/kiwisolver-1.4.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a5ce1e481a74b44dd5e92ff03ea0cb371ae7a0268318e202be06c8f04f4f1246", size = 1474952, upload-time = "2024-12-24T18:29:56.523Z" }, + { url = "https://files.pythonhosted.org/packages/82/13/13fa685ae167bee5d94b415991c4fc7bb0a1b6ebea6e753a87044b209678/kiwisolver-1.4.8-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:fc2ace710ba7c1dfd1a3b42530b62b9ceed115f19a1656adefce7b1782a37794", size = 2269132, upload-time = "2024-12-24T18:29:57.989Z" }, + { url = "https://files.pythonhosted.org/packages/ef/92/bb7c9395489b99a6cb41d502d3686bac692586db2045adc19e45ee64ed23/kiwisolver-1.4.8-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3452046c37c7692bd52b0e752b87954ef86ee2224e624ef7ce6cb21e8c41cc1b", size = 2425997, upload-time = "2024-12-24T18:29:59.393Z" }, + { url = "https://files.pythonhosted.org/packages/ed/12/87f0e9271e2b63d35d0d8524954145837dd1a6c15b62a2d8c1ebe0f182b4/kiwisolver-1.4.8-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7e9a60b50fe8b2ec6f448fe8d81b07e40141bfced7f896309df271a0b92f80f3", size = 2376060, upload-time = "2024-12-24T18:30:01.338Z" }, + { url = "https://files.pythonhosted.org/packages/02/6e/c8af39288edbce8bf0fa35dee427b082758a4b71e9c91ef18fa667782138/kiwisolver-1.4.8-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:918139571133f366e8362fa4a297aeba86c7816b7ecf0bc79168080e2bd79957", size = 2520471, upload-time = "2024-12-24T18:30:04.574Z" }, + { url = "https://files.pythonhosted.org/packages/13/78/df381bc7b26e535c91469f77f16adcd073beb3e2dd25042efd064af82323/kiwisolver-1.4.8-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e063ef9f89885a1d68dd8b2e18f5ead48653176d10a0e324e3b0030e3a69adeb", size = 2338793, upload-time = "2024-12-24T18:30:06.25Z" }, + { url = "https://files.pythonhosted.org/packages/d0/dc/c1abe38c37c071d0fc71c9a474fd0b9ede05d42f5a458d584619cfd2371a/kiwisolver-1.4.8-cp313-cp313-win_amd64.whl", hash = "sha256:a17b7c4f5b2c51bb68ed379defd608a03954a1845dfed7cc0117f1cc8a9b7fd2", size = 71855, upload-time = "2024-12-24T18:30:07.535Z" }, + { url = "https://files.pythonhosted.org/packages/a0/b6/21529d595b126ac298fdd90b705d87d4c5693de60023e0efcb4f387ed99e/kiwisolver-1.4.8-cp313-cp313-win_arm64.whl", hash = "sha256:3cd3bc628b25f74aedc6d374d5babf0166a92ff1317f46267f12d2ed54bc1d30", size = 65430, upload-time = "2024-12-24T18:30:08.504Z" }, + { url = "https://files.pythonhosted.org/packages/34/bd/b89380b7298e3af9b39f49334e3e2a4af0e04819789f04b43d560516c0c8/kiwisolver-1.4.8-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:370fd2df41660ed4e26b8c9d6bbcad668fbe2560462cba151a721d49e5b6628c", size = 126294, upload-time = "2024-12-24T18:30:09.508Z" }, + { url = "https://files.pythonhosted.org/packages/83/41/5857dc72e5e4148eaac5aa76e0703e594e4465f8ab7ec0fc60e3a9bb8fea/kiwisolver-1.4.8-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:84a2f830d42707de1d191b9490ac186bf7997a9495d4e9072210a1296345f7dc", size = 67736, upload-time = "2024-12-24T18:30:11.039Z" }, + { url = "https://files.pythonhosted.org/packages/e1/d1/be059b8db56ac270489fb0b3297fd1e53d195ba76e9bbb30e5401fa6b759/kiwisolver-1.4.8-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7a3ad337add5148cf51ce0b55642dc551c0b9d6248458a757f98796ca7348712", size = 66194, upload-time = "2024-12-24T18:30:14.886Z" }, + { url = "https://files.pythonhosted.org/packages/e1/83/4b73975f149819eb7dcf9299ed467eba068ecb16439a98990dcb12e63fdd/kiwisolver-1.4.8-cp313-cp313t-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7506488470f41169b86d8c9aeff587293f530a23a23a49d6bc64dab66bedc71e", size = 1465942, upload-time = "2024-12-24T18:30:18.927Z" }, + { url = "https://files.pythonhosted.org/packages/c7/2c/30a5cdde5102958e602c07466bce058b9d7cb48734aa7a4327261ac8e002/kiwisolver-1.4.8-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2f0121b07b356a22fb0414cec4666bbe36fd6d0d759db3d37228f496ed67c880", size = 1595341, upload-time = "2024-12-24T18:30:22.102Z" }, + { url = "https://files.pythonhosted.org/packages/ff/9b/1e71db1c000385aa069704f5990574b8244cce854ecd83119c19e83c9586/kiwisolver-1.4.8-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d6d6bd87df62c27d4185de7c511c6248040afae67028a8a22012b010bc7ad062", size = 1598455, upload-time = "2024-12-24T18:30:24.947Z" }, + { url = "https://files.pythonhosted.org/packages/85/92/c8fec52ddf06231b31cbb779af77e99b8253cd96bd135250b9498144c78b/kiwisolver-1.4.8-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:291331973c64bb9cce50bbe871fb2e675c4331dab4f31abe89f175ad7679a4d7", size = 1522138, upload-time = "2024-12-24T18:30:26.286Z" }, + { url = "https://files.pythonhosted.org/packages/0b/51/9eb7e2cd07a15d8bdd976f6190c0164f92ce1904e5c0c79198c4972926b7/kiwisolver-1.4.8-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:893f5525bb92d3d735878ec00f781b2de998333659507d29ea4466208df37bed", size = 1582857, upload-time = "2024-12-24T18:30:28.86Z" }, + { url = "https://files.pythonhosted.org/packages/0f/95/c5a00387a5405e68ba32cc64af65ce881a39b98d73cc394b24143bebc5b8/kiwisolver-1.4.8-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b47a465040146981dc9db8647981b8cb96366fbc8d452b031e4f8fdffec3f26d", size = 2293129, upload-time = "2024-12-24T18:30:30.34Z" }, + { url = "https://files.pythonhosted.org/packages/44/83/eeb7af7d706b8347548313fa3a3a15931f404533cc54fe01f39e830dd231/kiwisolver-1.4.8-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:99cea8b9dd34ff80c521aef46a1dddb0dcc0283cf18bde6d756f1e6f31772165", size = 2421538, upload-time = "2024-12-24T18:30:33.334Z" }, + { url = "https://files.pythonhosted.org/packages/05/f9/27e94c1b3eb29e6933b6986ffc5fa1177d2cd1f0c8efc5f02c91c9ac61de/kiwisolver-1.4.8-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:151dffc4865e5fe6dafce5480fab84f950d14566c480c08a53c663a0020504b6", size = 2390661, upload-time = "2024-12-24T18:30:34.939Z" }, + { url = "https://files.pythonhosted.org/packages/d9/d4/3c9735faa36ac591a4afcc2980d2691000506050b7a7e80bcfe44048daa7/kiwisolver-1.4.8-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:577facaa411c10421314598b50413aa1ebcf5126f704f1e5d72d7e4e9f020d90", size = 2546710, upload-time = "2024-12-24T18:30:37.281Z" }, + { url = "https://files.pythonhosted.org/packages/4c/fa/be89a49c640930180657482a74970cdcf6f7072c8d2471e1babe17a222dc/kiwisolver-1.4.8-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:be4816dc51c8a471749d664161b434912eee82f2ea66bd7628bd14583a833e85", size = 2349213, upload-time = "2024-12-24T18:30:40.019Z" }, +] + +[[package]] +name = "libclang" +version = "18.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6e/5c/ca35e19a4f142adffa27e3d652196b7362fa612243e2b916845d801454fc/libclang-18.1.1.tar.gz", hash = "sha256:a1214966d08d73d971287fc3ead8dfaf82eb07fb197680d8b3859dbbbbf78250", size = 39612, upload-time = "2024-03-17T16:04:37.434Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4b/49/f5e3e7e1419872b69f6f5e82ba56e33955a74bd537d8a1f5f1eff2f3668a/libclang-18.1.1-1-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:0b2e143f0fac830156feb56f9231ff8338c20aecfe72b4ffe96f19e5a1dbb69a", size = 25836045, upload-time = "2024-06-30T17:40:31.646Z" }, + { url = "https://files.pythonhosted.org/packages/e2/e5/fc61bbded91a8830ccce94c5294ecd6e88e496cc85f6704bf350c0634b70/libclang-18.1.1-py2.py3-none-macosx_10_9_x86_64.whl", hash = "sha256:6f14c3f194704e5d09769108f03185fce7acaf1d1ae4bbb2f30a72c2400cb7c5", size = 26502641, upload-time = "2024-03-18T15:52:26.722Z" }, + { url = "https://files.pythonhosted.org/packages/db/ed/1df62b44db2583375f6a8a5e2ca5432bbdc3edb477942b9b7c848c720055/libclang-18.1.1-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:83ce5045d101b669ac38e6da8e58765f12da2d3aafb3b9b98d88b286a60964d8", size = 26420207, upload-time = "2024-03-17T15:00:26.63Z" }, + { url = "https://files.pythonhosted.org/packages/1d/fc/716c1e62e512ef1c160e7984a73a5fc7df45166f2ff3f254e71c58076f7c/libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl", hash = "sha256:c533091d8a3bbf7460a00cb6c1a71da93bffe148f172c7d03b1c31fbf8aa2a0b", size = 24515943, upload-time = "2024-03-17T16:03:45.942Z" }, + { url = "https://files.pythonhosted.org/packages/3c/3d/f0ac1150280d8d20d059608cf2d5ff61b7c3b7f7bcf9c0f425ab92df769a/libclang-18.1.1-py2.py3-none-manylinux2014_aarch64.whl", hash = "sha256:54dda940a4a0491a9d1532bf071ea3ef26e6dbaf03b5000ed94dd7174e8f9592", size = 23784972, upload-time = "2024-03-17T16:12:47.677Z" }, + { url = "https://files.pythonhosted.org/packages/fe/2f/d920822c2b1ce9326a4c78c0c2b4aa3fde610c7ee9f631b600acb5376c26/libclang-18.1.1-py2.py3-none-manylinux2014_armv7l.whl", hash = "sha256:cf4a99b05376513717ab5d82a0db832c56ccea4fd61a69dbb7bccf2dfb207dbe", size = 20259606, upload-time = "2024-03-17T16:17:42.437Z" }, + { url = "https://files.pythonhosted.org/packages/2d/c2/de1db8c6d413597076a4259cea409b83459b2db997c003578affdd32bf66/libclang-18.1.1-py2.py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:69f8eb8f65c279e765ffd28aaa7e9e364c776c17618af8bff22a8df58677ff4f", size = 24921494, upload-time = "2024-03-17T16:14:20.132Z" }, + { url = "https://files.pythonhosted.org/packages/0b/2d/3f480b1e1d31eb3d6de5e3ef641954e5c67430d5ac93b7fa7e07589576c7/libclang-18.1.1-py2.py3-none-win_amd64.whl", hash = "sha256:4dd2d3b82fab35e2bf9ca717d7b63ac990a3519c7e312f19fa8e86dcc712f7fb", size = 26415083, upload-time = "2024-03-17T16:42:21.703Z" }, + { url = "https://files.pythonhosted.org/packages/71/cf/e01dc4cc79779cd82d77888a88ae2fa424d93b445ad4f6c02bfc18335b70/libclang-18.1.1-py2.py3-none-win_arm64.whl", hash = "sha256:3f0e1f49f04d3cd198985fea0511576b0aee16f9ff0e0f0cad7f9c57ec3c20e8", size = 22361112, upload-time = "2024-03-17T16:42:59.565Z" }, +] + +[[package]] +name = "lxml" +version = "5.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ef/f6/c15ca8e5646e937c148e147244817672cf920b56ac0bf2cc1512ae674be8/lxml-5.3.1.tar.gz", hash = "sha256:106b7b5d2977b339f1e97efe2778e2ab20e99994cbb0ec5e55771ed0795920c8", size = 3678591, upload-time = "2025-02-10T07:51:41.769Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/94/1c/724931daa1ace168e0237b929e44062545bf1551974102a5762c349c668d/lxml-5.3.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c093c7088b40d8266f57ed71d93112bd64c6724d31f0794c1e52cc4857c28e0e", size = 8171881, upload-time = "2025-02-10T07:46:40.653Z" }, + { url = "https://files.pythonhosted.org/packages/67/0c/857b8fb6010c4246e66abeebb8639eaabba60a6d9b7c606554ecc5cbf1ee/lxml-5.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b0884e3f22d87c30694e625b1e62e6f30d39782c806287450d9dc2fdf07692fd", size = 4440394, upload-time = "2025-02-10T07:46:44.037Z" }, + { url = "https://files.pythonhosted.org/packages/61/72/c9e81de6a000f9682ccdd13503db26e973b24c68ac45a7029173237e3eed/lxml-5.3.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1637fa31ec682cd5760092adfabe86d9b718a75d43e65e211d5931809bc111e7", size = 5037860, upload-time = "2025-02-10T07:46:47.919Z" }, + { url = "https://files.pythonhosted.org/packages/24/26/942048c4b14835711b583b48cd7209bd2b5f0b6939ceed2381a494138b14/lxml-5.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a364e8e944d92dcbf33b6b494d4e0fb3499dcc3bd9485beb701aa4b4201fa414", size = 4782513, upload-time = "2025-02-10T07:46:50.696Z" }, + { url = "https://files.pythonhosted.org/packages/e2/65/27792339caf00f610cc5be32b940ba1e3009b7054feb0c4527cebac228d4/lxml-5.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:779e851fd0e19795ccc8a9bb4d705d6baa0ef475329fe44a13cf1e962f18ff1e", size = 5305227, upload-time = "2025-02-10T07:46:53.503Z" }, + { url = "https://files.pythonhosted.org/packages/18/e1/25f7aa434a4d0d8e8420580af05ea49c3e12db6d297cf5435ac0a054df56/lxml-5.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c4393600915c308e546dc7003d74371744234e8444a28622d76fe19b98fa59d1", size = 4829846, upload-time = "2025-02-10T07:46:56.262Z" }, + { url = "https://files.pythonhosted.org/packages/fe/ed/faf235e0792547d24f61ee1448159325448a7e4f2ab706503049d8e5df19/lxml-5.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:673b9d8e780f455091200bba8534d5f4f465944cbdd61f31dc832d70e29064a5", size = 4949495, upload-time = "2025-02-10T07:46:59.189Z" }, + { url = "https://files.pythonhosted.org/packages/e5/e1/8f572ad9ed6039ba30f26dd4c2c58fb90f79362d2ee35ca3820284767672/lxml-5.3.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:2e4a570f6a99e96c457f7bec5ad459c9c420ee80b99eb04cbfcfe3fc18ec6423", size = 4773415, upload-time = "2025-02-10T07:47:03.53Z" }, + { url = "https://files.pythonhosted.org/packages/a3/75/6b57166b9d1983dac8f28f354e38bff8d6bcab013a241989c4d54c72701b/lxml-5.3.1-cp313-cp313-manylinux_2_28_ppc64le.whl", hash = "sha256:71f31eda4e370f46af42fc9f264fafa1b09f46ba07bdbee98f25689a04b81c20", size = 5337710, upload-time = "2025-02-10T07:47:06.385Z" }, + { url = "https://files.pythonhosted.org/packages/cc/71/4aa56e2daa83bbcc66ca27b5155be2f900d996f5d0c51078eaaac8df9547/lxml-5.3.1-cp313-cp313-manylinux_2_28_s390x.whl", hash = "sha256:42978a68d3825eaac55399eb37a4d52012a205c0c6262199b8b44fcc6fd686e8", size = 4897362, upload-time = "2025-02-10T07:47:09.24Z" }, + { url = "https://files.pythonhosted.org/packages/65/10/3fa2da152cd9b49332fd23356ed7643c9b74cad636ddd5b2400a9730d12b/lxml-5.3.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:8b1942b3e4ed9ed551ed3083a2e6e0772de1e5e3aca872d955e2e86385fb7ff9", size = 4977795, upload-time = "2025-02-10T07:47:12.101Z" }, + { url = "https://files.pythonhosted.org/packages/de/d2/e1da0f7b20827e7b0ce934963cb6334c1b02cf1bb4aecd218c4496880cb3/lxml-5.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:85c4f11be9cf08917ac2a5a8b6e1ef63b2f8e3799cec194417e76826e5f1de9c", size = 4858104, upload-time = "2025-02-10T07:47:15.998Z" }, + { url = "https://files.pythonhosted.org/packages/a5/35/063420e1b33d3308f5aa7fcbdd19ef6c036f741c9a7a4bd5dc8032486b27/lxml-5.3.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:231cf4d140b22a923b1d0a0a4e0b4f972e5893efcdec188934cc65888fd0227b", size = 5416531, upload-time = "2025-02-10T07:47:19.862Z" }, + { url = "https://files.pythonhosted.org/packages/c3/83/93a6457d291d1e37adfb54df23498101a4701834258c840381dd2f6a030e/lxml-5.3.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5865b270b420eda7b68928d70bb517ccbe045e53b1a428129bb44372bf3d7dd5", size = 5273040, upload-time = "2025-02-10T07:47:24.29Z" }, + { url = "https://files.pythonhosted.org/packages/39/25/ad4ac8fac488505a2702656550e63c2a8db3a4fd63db82a20dad5689cecb/lxml-5.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:dbf7bebc2275016cddf3c997bf8a0f7044160714c64a9b83975670a04e6d2252", size = 5050951, upload-time = "2025-02-10T07:47:27.143Z" }, + { url = "https://files.pythonhosted.org/packages/82/74/f7d223c704c87e44b3d27b5e0dde173a2fcf2e89c0524c8015c2b3554876/lxml-5.3.1-cp313-cp313-win32.whl", hash = "sha256:d0751528b97d2b19a388b302be2a0ee05817097bab46ff0ed76feeec24951f78", size = 3485357, upload-time = "2025-02-10T07:47:29.738Z" }, + { url = "https://files.pythonhosted.org/packages/80/83/8c54533b3576f4391eebea88454738978669a6cad0d8e23266224007939d/lxml-5.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:91fb6a43d72b4f8863d21f347a9163eecbf36e76e2f51068d59cd004c506f332", size = 3814484, upload-time = "2025-02-10T07:47:33.3Z" }, +] + +[[package]] +name = "markdown" +version = "3.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/28/3af612670f82f4c056911fbbbb42760255801b3068c48de792d354ff4472/markdown-3.7.tar.gz", hash = "sha256:2ae2471477cfd02dbbf038d5d9bc226d40def84b4fe2986e49b59b6b472bbed2", size = 357086, upload-time = "2024-08-16T15:55:17.812Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/08/83871f3c50fc983b88547c196d11cf8c3340e37c32d2e9d6152abe2c61f7/Markdown-3.7-py3-none-any.whl", hash = "sha256:7eb6df5690b81a1d7942992c97fad2938e956e79df20cbc6186e9c3a77b1c803", size = 106349, upload-time = "2024-08-16T15:55:16.176Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596, upload-time = "2023-06-03T06:41:14.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528, upload-time = "2023-06-03T06:41:11.019Z" }, +] + +[[package]] +name = "markupsafe" +version = "3.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537, upload-time = "2024-10-18T15:21:54.129Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/0e/67eb10a7ecc77a0c2bbe2b0235765b98d164d81600746914bebada795e97/MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd", size = 14274, upload-time = "2024-10-18T15:21:24.577Z" }, + { url = "https://files.pythonhosted.org/packages/2b/6d/9409f3684d3335375d04e5f05744dfe7e9f120062c9857df4ab490a1031a/MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430", size = 12352, upload-time = "2024-10-18T15:21:25.382Z" }, + { url = "https://files.pythonhosted.org/packages/d2/f5/6eadfcd3885ea85fe2a7c128315cc1bb7241e1987443d78c8fe712d03091/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094", size = 24122, upload-time = "2024-10-18T15:21:26.199Z" }, + { url = "https://files.pythonhosted.org/packages/0c/91/96cf928db8236f1bfab6ce15ad070dfdd02ed88261c2afafd4b43575e9e9/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396", size = 23085, upload-time = "2024-10-18T15:21:27.029Z" }, + { url = "https://files.pythonhosted.org/packages/c2/cf/c9d56af24d56ea04daae7ac0940232d31d5a8354f2b457c6d856b2057d69/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79", size = 22978, upload-time = "2024-10-18T15:21:27.846Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9f/8619835cd6a711d6272d62abb78c033bda638fdc54c4e7f4272cf1c0962b/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a", size = 24208, upload-time = "2024-10-18T15:21:28.744Z" }, + { url = "https://files.pythonhosted.org/packages/f9/bf/176950a1792b2cd2102b8ffeb5133e1ed984547b75db47c25a67d3359f77/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca", size = 23357, upload-time = "2024-10-18T15:21:29.545Z" }, + { url = "https://files.pythonhosted.org/packages/ce/4f/9a02c1d335caabe5c4efb90e1b6e8ee944aa245c1aaaab8e8a618987d816/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c", size = 23344, upload-time = "2024-10-18T15:21:30.366Z" }, + { url = "https://files.pythonhosted.org/packages/ee/55/c271b57db36f748f0e04a759ace9f8f759ccf22b4960c270c78a394f58be/MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1", size = 15101, upload-time = "2024-10-18T15:21:31.207Z" }, + { url = "https://files.pythonhosted.org/packages/29/88/07df22d2dd4df40aba9f3e402e6dc1b8ee86297dddbad4872bd5e7b0094f/MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f", size = 15603, upload-time = "2024-10-18T15:21:32.032Z" }, + { url = "https://files.pythonhosted.org/packages/62/6a/8b89d24db2d32d433dffcd6a8779159da109842434f1dd2f6e71f32f738c/MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c", size = 14510, upload-time = "2024-10-18T15:21:33.625Z" }, + { url = "https://files.pythonhosted.org/packages/7a/06/a10f955f70a2e5a9bf78d11a161029d278eeacbd35ef806c3fd17b13060d/MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb", size = 12486, upload-time = "2024-10-18T15:21:34.611Z" }, + { url = "https://files.pythonhosted.org/packages/34/cf/65d4a571869a1a9078198ca28f39fba5fbb910f952f9dbc5220afff9f5e6/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c", size = 25480, upload-time = "2024-10-18T15:21:35.398Z" }, + { url = "https://files.pythonhosted.org/packages/0c/e3/90e9651924c430b885468b56b3d597cabf6d72be4b24a0acd1fa0e12af67/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d", size = 23914, upload-time = "2024-10-18T15:21:36.231Z" }, + { url = "https://files.pythonhosted.org/packages/66/8c/6c7cf61f95d63bb866db39085150df1f2a5bd3335298f14a66b48e92659c/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe", size = 23796, upload-time = "2024-10-18T15:21:37.073Z" }, + { url = "https://files.pythonhosted.org/packages/bb/35/cbe9238ec3f47ac9a7c8b3df7a808e7cb50fe149dc7039f5f454b3fba218/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5", size = 25473, upload-time = "2024-10-18T15:21:37.932Z" }, + { url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114, upload-time = "2024-10-18T15:21:39.799Z" }, + { url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098, upload-time = "2024-10-18T15:21:40.813Z" }, + { url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208, upload-time = "2024-10-18T15:21:41.814Z" }, + { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739, upload-time = "2024-10-18T15:21:42.784Z" }, +] + +[[package]] +name = "matplotlib" +version = "3.10.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "contourpy" }, + { name = "cycler" }, + { name = "fonttools" }, + { name = "kiwisolver" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "pyparsing" }, + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2f/08/b89867ecea2e305f408fbb417139a8dd941ecf7b23a2e02157c36da546f0/matplotlib-3.10.1.tar.gz", hash = "sha256:e8d2d0e3881b129268585bf4765ad3ee73a4591d77b9a18c214ac7e3a79fb2ba", size = 36743335, upload-time = "2025-02-27T19:19:51.038Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/60/73/6770ff5e5523d00f3bc584acb6031e29ee5c8adc2336b16cd1d003675fe0/matplotlib-3.10.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c42eee41e1b60fd83ee3292ed83a97a5f2a8239b10c26715d8a6172226988d7b", size = 8176112, upload-time = "2025-02-27T19:19:07.59Z" }, + { url = "https://files.pythonhosted.org/packages/08/97/b0ca5da0ed54a3f6599c3ab568bdda65269bc27c21a2c97868c1625e4554/matplotlib-3.10.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4f0647b17b667ae745c13721602b540f7aadb2a32c5b96e924cd4fea5dcb90f1", size = 8046931, upload-time = "2025-02-27T19:19:10.515Z" }, + { url = "https://files.pythonhosted.org/packages/df/9a/1acbdc3b165d4ce2dcd2b1a6d4ffb46a7220ceee960c922c3d50d8514067/matplotlib-3.10.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa3854b5f9473564ef40a41bc922be978fab217776e9ae1545c9b3a5cf2092a3", size = 8453422, upload-time = "2025-02-27T19:19:12.738Z" }, + { url = "https://files.pythonhosted.org/packages/51/d0/2bc4368abf766203e548dc7ab57cf7e9c621f1a3c72b516cc7715347b179/matplotlib-3.10.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e496c01441be4c7d5f96d4e40f7fca06e20dcb40e44c8daa2e740e1757ad9e6", size = 8596819, upload-time = "2025-02-27T19:19:15.306Z" }, + { url = "https://files.pythonhosted.org/packages/ab/1b/8b350f8a1746c37ab69dda7d7528d1fc696efb06db6ade9727b7887be16d/matplotlib-3.10.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5d45d3f5245be5b469843450617dcad9af75ca50568acf59997bed9311131a0b", size = 9402782, upload-time = "2025-02-27T19:19:17.841Z" }, + { url = "https://files.pythonhosted.org/packages/89/06/f570373d24d93503988ba8d04f213a372fa1ce48381c5eb15da985728498/matplotlib-3.10.1-cp313-cp313-win_amd64.whl", hash = "sha256:8e8e25b1209161d20dfe93037c8a7f7ca796ec9aa326e6e4588d8c4a5dd1e473", size = 8063812, upload-time = "2025-02-27T19:19:20.888Z" }, + { url = "https://files.pythonhosted.org/packages/fc/e0/8c811a925b5a7ad75135f0e5af46408b78af88bbb02a1df775100ef9bfef/matplotlib-3.10.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:19b06241ad89c3ae9469e07d77efa87041eac65d78df4fcf9cac318028009b01", size = 8214021, upload-time = "2025-02-27T19:19:23.412Z" }, + { url = "https://files.pythonhosted.org/packages/4a/34/319ec2139f68ba26da9d00fce2ff9f27679fb799a6c8e7358539801fd629/matplotlib-3.10.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:01e63101ebb3014e6e9f80d9cf9ee361a8599ddca2c3e166c563628b39305dbb", size = 8090782, upload-time = "2025-02-27T19:19:28.33Z" }, + { url = "https://files.pythonhosted.org/packages/77/ea/9812124ab9a99df5b2eec1110e9b2edc0b8f77039abf4c56e0a376e84a29/matplotlib-3.10.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f06bad951eea6422ac4e8bdebcf3a70c59ea0a03338c5d2b109f57b64eb3972", size = 8478901, upload-time = "2025-02-27T19:19:31.536Z" }, + { url = "https://files.pythonhosted.org/packages/c9/db/b05bf463689134789b06dea85828f8ebe506fa1e37593f723b65b86c9582/matplotlib-3.10.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3dfb036f34873b46978f55e240cff7a239f6c4409eac62d8145bad3fc6ba5a3", size = 8613864, upload-time = "2025-02-27T19:19:34.233Z" }, + { url = "https://files.pythonhosted.org/packages/c2/04/41ccec4409f3023a7576df3b5c025f1a8c8b81fbfe922ecfd837ac36e081/matplotlib-3.10.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:dc6ab14a7ab3b4d813b88ba957fc05c79493a037f54e246162033591e770de6f", size = 9409487, upload-time = "2025-02-27T19:19:36.924Z" }, + { url = "https://files.pythonhosted.org/packages/ac/c2/0d5aae823bdcc42cc99327ecdd4d28585e15ccd5218c453b7bcd827f3421/matplotlib-3.10.1-cp313-cp313t-win_amd64.whl", hash = "sha256:bc411ebd5889a78dabbc457b3fa153203e22248bfa6eedc6797be5df0164dbf9", size = 8134832, upload-time = "2025-02-27T19:19:39.431Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "ml-dtypes" +version = "0.5.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0e/4a/c27b42ed9b1c7d13d9ba8b6905dece787d6259152f2309338aed29b2447b/ml_dtypes-0.5.4.tar.gz", hash = "sha256:8ab06a50fb9bf9666dd0fe5dfb4676fa2b0ac0f31ecff72a6c3af8e22c063453", size = 692314, upload-time = "2025-11-17T22:32:31.031Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d9/a1/4008f14bbc616cfb1ac5b39ea485f9c63031c4634ab3f4cf72e7541f816a/ml_dtypes-0.5.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8c760d85a2f82e2bed75867079188c9d18dae2ee77c25a54d60e9cc79be1bc48", size = 676888, upload-time = "2025-11-17T22:31:56.907Z" }, + { url = "https://files.pythonhosted.org/packages/d3/b7/dff378afc2b0d5a7d6cd9d3209b60474d9819d1189d347521e1688a60a53/ml_dtypes-0.5.4-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce756d3a10d0c4067172804c9cc276ba9cc0ff47af9078ad439b075d1abdc29b", size = 5036993, upload-time = "2025-11-17T22:31:58.497Z" }, + { url = "https://files.pythonhosted.org/packages/eb/33/40cd74219417e78b97c47802037cf2d87b91973e18bb968a7da48a96ea44/ml_dtypes-0.5.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:533ce891ba774eabf607172254f2e7260ba5f57bdd64030c9a4fcfbd99815d0d", size = 5010956, upload-time = "2025-11-17T22:31:59.931Z" }, + { url = "https://files.pythonhosted.org/packages/e1/8b/200088c6859d8221454825959df35b5244fa9bdf263fd0249ac5fb75e281/ml_dtypes-0.5.4-cp313-cp313-win_amd64.whl", hash = "sha256:f21c9219ef48ca5ee78402d5cc831bd58ea27ce89beda894428bc67a52da5328", size = 212224, upload-time = "2025-11-17T22:32:01.349Z" }, + { url = "https://files.pythonhosted.org/packages/8f/75/dfc3775cb36367816e678f69a7843f6f03bd4e2bcd79941e01ea960a068e/ml_dtypes-0.5.4-cp313-cp313-win_arm64.whl", hash = "sha256:35f29491a3e478407f7047b8a4834e4640a77d2737e0b294d049746507af5175", size = 160798, upload-time = "2025-11-17T22:32:02.864Z" }, + { url = "https://files.pythonhosted.org/packages/4f/74/e9ddb35fd1dd43b1106c20ced3f53c2e8e7fc7598c15638e9f80677f81d4/ml_dtypes-0.5.4-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:304ad47faa395415b9ccbcc06a0350800bc50eda70f0e45326796e27c62f18b6", size = 702083, upload-time = "2025-11-17T22:32:04.08Z" }, + { url = "https://files.pythonhosted.org/packages/74/f5/667060b0aed1aa63166b22897fdf16dca9eb704e6b4bbf86848d5a181aa7/ml_dtypes-0.5.4-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6a0df4223b514d799b8a1629c65ddc351b3efa833ccf7f8ea0cf654a61d1e35d", size = 5354111, upload-time = "2025-11-17T22:32:05.546Z" }, + { url = "https://files.pythonhosted.org/packages/40/49/0f8c498a28c0efa5f5c95a9e374c83ec1385ca41d0e85e7cf40e5d519a21/ml_dtypes-0.5.4-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:531eff30e4d368cb6255bc2328d070e35836aa4f282a0fb5f3a0cd7260257298", size = 5366453, upload-time = "2025-11-17T22:32:07.115Z" }, + { url = "https://files.pythonhosted.org/packages/8c/27/12607423d0a9c6bbbcc780ad19f1f6baa2b68b18ce4bddcdc122c4c68dc9/ml_dtypes-0.5.4-cp313-cp313t-win_amd64.whl", hash = "sha256:cb73dccfc991691c444acc8c0012bee8f2470da826a92e3a20bb333b1a7894e6", size = 225612, upload-time = "2025-11-17T22:32:08.615Z" }, + { url = "https://files.pythonhosted.org/packages/e5/80/5a5929e92c72936d5b19872c5fb8fc09327c1da67b3b68c6a13139e77e20/ml_dtypes-0.5.4-cp313-cp313t-win_arm64.whl", hash = "sha256:3bbbe120b915090d9dd1375e4684dd17a20a2491ef25d640a908281da85e73f1", size = 164145, upload-time = "2025-11-17T22:32:09.782Z" }, + { url = "https://files.pythonhosted.org/packages/72/4e/1339dc6e2557a344f5ba5590872e80346f76f6cb2ac3dd16e4666e88818c/ml_dtypes-0.5.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:2b857d3af6ac0d39db1de7c706e69c7f9791627209c3d6dedbfca8c7e5faec22", size = 673781, upload-time = "2025-11-17T22:32:11.364Z" }, + { url = "https://files.pythonhosted.org/packages/04/f9/067b84365c7e83bda15bba2b06c6ca250ce27b20630b1128c435fb7a09aa/ml_dtypes-0.5.4-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:805cef3a38f4eafae3a5bf9ebdcdb741d0bcfd9e1bd90eb54abd24f928cd2465", size = 5036145, upload-time = "2025-11-17T22:32:12.783Z" }, + { url = "https://files.pythonhosted.org/packages/c6/bb/82c7dcf38070b46172a517e2334e665c5bf374a262f99a283ea454bece7c/ml_dtypes-0.5.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:14a4fd3228af936461db66faccef6e4f41c1d82fcc30e9f8d58a08916b1d811f", size = 5010230, upload-time = "2025-11-17T22:32:14.38Z" }, + { url = "https://files.pythonhosted.org/packages/e9/93/2bfed22d2498c468f6bcd0d9f56b033eaa19f33320389314c19ef6766413/ml_dtypes-0.5.4-cp314-cp314-win_amd64.whl", hash = "sha256:8c6a2dcebd6f3903e05d51960a8058d6e131fe69f952a5397e5dbabc841b6d56", size = 221032, upload-time = "2025-11-17T22:32:15.763Z" }, + { url = "https://files.pythonhosted.org/packages/76/a3/9c912fe6ea747bb10fe2f8f54d027eb265db05dfb0c6335e3e063e74e6e8/ml_dtypes-0.5.4-cp314-cp314-win_arm64.whl", hash = "sha256:5a0f68ca8fd8d16583dfa7793973feb86f2fbb56ce3966daf9c9f748f52a2049", size = 163353, upload-time = "2025-11-17T22:32:16.932Z" }, + { url = "https://files.pythonhosted.org/packages/cd/02/48aa7d84cc30ab4ee37624a2fd98c56c02326785750cd212bc0826c2f15b/ml_dtypes-0.5.4-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:bfc534409c5d4b0bf945af29e5d0ab075eae9eecbb549ff8a29280db822f34f9", size = 702085, upload-time = "2025-11-17T22:32:18.175Z" }, + { url = "https://files.pythonhosted.org/packages/5a/e7/85cb99fe80a7a5513253ec7faa88a65306be071163485e9a626fce1b6e84/ml_dtypes-0.5.4-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2314892cdc3fcf05e373d76d72aaa15fda9fb98625effa73c1d646f331fcecb7", size = 5355358, upload-time = "2025-11-17T22:32:19.7Z" }, + { url = "https://files.pythonhosted.org/packages/79/2b/a826ba18d2179a56e144aef69e57fb2ab7c464ef0b2111940ee8a3a223a2/ml_dtypes-0.5.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0d2ffd05a2575b1519dc928c0b93c06339eb67173ff53acb00724502cda231cf", size = 5366332, upload-time = "2025-11-17T22:32:21.193Z" }, + { url = "https://files.pythonhosted.org/packages/84/44/f4d18446eacb20ea11e82f133ea8f86e2bf2891785b67d9da8d0ab0ef525/ml_dtypes-0.5.4-cp314-cp314t-win_amd64.whl", hash = "sha256:4381fe2f2452a2d7589689693d3162e876b3ddb0a832cde7a414f8e1adf7eab1", size = 236612, upload-time = "2025-11-17T22:32:22.579Z" }, + { url = "https://files.pythonhosted.org/packages/ad/3f/3d42e9a78fe5edf792a83c074b13b9b770092a4fbf3462872f4303135f09/ml_dtypes-0.5.4-cp314-cp314t-win_arm64.whl", hash = "sha256:11942cbf2cf92157db91e5022633c0d9474d4dfd813a909383bd23ce828a4b7d", size = 168825, upload-time = "2025-11-17T22:32:23.766Z" }, +] + +[[package]] +name = "mpmath" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" }, +] + +[[package]] +name = "namex" +version = "0.0.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9d/48/d275cdb6216c6bb4f9351675795a0b48974e138f16b1ffe0252c1f8faa28/namex-0.0.8.tar.gz", hash = "sha256:32a50f6c565c0bb10aa76298c959507abdc0e850efe085dc38f3440fcb3aa90b", size = 6623, upload-time = "2024-04-15T04:04:25.917Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/73/59/7854fbfb59f8ae35483ce93493708be5942ebb6328cd85b3a609df629736/namex-0.0.8-py3-none-any.whl", hash = "sha256:7ddb6c2bb0e753a311b7590f84f6da659dd0c05e65cb89d519d54c0a250c0487", size = 5806, upload-time = "2024-04-15T04:04:24.513Z" }, +] + +[[package]] +name = "networkx" +version = "3.4.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/1d/06475e1cd5264c0b870ea2cc6fdb3e37177c1e565c43f56ff17a10e3937f/networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1", size = 2151368, upload-time = "2024-10-21T12:39:38.695Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b9/54/dd730b32ea14ea797530a4479b2ed46a6fb250f682a9cfb997e968bf0261/networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f", size = 1723263, upload-time = "2024-10-21T12:39:36.247Z" }, +] + +[[package]] +name = "nodeenv" +version = "1.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437, upload-time = "2024-06-04T18:44:11.171Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314, upload-time = "2024-06-04T18:44:08.352Z" }, +] + +[[package]] +name = "numpy" +version = "2.3.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/76/65/21b3bc86aac7b8f2862db1e808f1ea22b028e30a225a34a5ede9bf8678f2/numpy-2.3.5.tar.gz", hash = "sha256:784db1dcdab56bf0517743e746dfb0f885fc68d948aba86eeec2cba234bdf1c0", size = 20584950, upload-time = "2025-11-16T22:52:42.067Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/db/69/9cde09f36da4b5a505341180a3f2e6fadc352fd4d2b7096ce9778db83f1a/numpy-2.3.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d0f23b44f57077c1ede8c5f26b30f706498b4862d3ff0a7298b8411dd2f043ff", size = 16728251, upload-time = "2025-11-16T22:50:19.013Z" }, + { url = "https://files.pythonhosted.org/packages/79/fb/f505c95ceddd7027347b067689db71ca80bd5ecc926f913f1a23e65cf09b/numpy-2.3.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:aa5bc7c5d59d831d9773d1170acac7893ce3a5e130540605770ade83280e7188", size = 12254652, upload-time = "2025-11-16T22:50:21.487Z" }, + { url = "https://files.pythonhosted.org/packages/78/da/8c7738060ca9c31b30e9301ee0cf6c5ffdbf889d9593285a1cead337f9a5/numpy-2.3.5-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:ccc933afd4d20aad3c00bcef049cb40049f7f196e0397f1109dba6fed63267b0", size = 5083172, upload-time = "2025-11-16T22:50:24.562Z" }, + { url = "https://files.pythonhosted.org/packages/a4/b4/ee5bb2537fb9430fd2ef30a616c3672b991a4129bb1c7dcc42aa0abbe5d7/numpy-2.3.5-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:afaffc4393205524af9dfa400fa250143a6c3bc646c08c9f5e25a9f4b4d6a903", size = 6622990, upload-time = "2025-11-16T22:50:26.47Z" }, + { url = "https://files.pythonhosted.org/packages/95/03/dc0723a013c7d7c19de5ef29e932c3081df1c14ba582b8b86b5de9db7f0f/numpy-2.3.5-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c75442b2209b8470d6d5d8b1c25714270686f14c749028d2199c54e29f20b4d", size = 14248902, upload-time = "2025-11-16T22:50:28.861Z" }, + { url = "https://files.pythonhosted.org/packages/f5/10/ca162f45a102738958dcec8023062dad0cbc17d1ab99d68c4e4a6c45fb2b/numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11e06aa0af8c0f05104d56450d6093ee639e15f24ecf62d417329d06e522e017", size = 16597430, upload-time = "2025-11-16T22:50:31.56Z" }, + { url = "https://files.pythonhosted.org/packages/2a/51/c1e29be863588db58175175f057286900b4b3327a1351e706d5e0f8dd679/numpy-2.3.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ed89927b86296067b4f81f108a2271d8926467a8868e554eaf370fc27fa3ccaf", size = 16024551, upload-time = "2025-11-16T22:50:34.242Z" }, + { url = "https://files.pythonhosted.org/packages/83/68/8236589d4dbb87253d28259d04d9b814ec0ecce7cb1c7fed29729f4c3a78/numpy-2.3.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51c55fe3451421f3a6ef9a9c1439e82101c57a2c9eab9feb196a62b1a10b58ce", size = 18533275, upload-time = "2025-11-16T22:50:37.651Z" }, + { url = "https://files.pythonhosted.org/packages/40/56/2932d75b6f13465239e3b7b7e511be27f1b8161ca2510854f0b6e521c395/numpy-2.3.5-cp313-cp313-win32.whl", hash = "sha256:1978155dd49972084bd6ef388d66ab70f0c323ddee6f693d539376498720fb7e", size = 6277637, upload-time = "2025-11-16T22:50:40.11Z" }, + { url = "https://files.pythonhosted.org/packages/0c/88/e2eaa6cffb115b85ed7c7c87775cb8bcf0816816bc98ca8dbfa2ee33fe6e/numpy-2.3.5-cp313-cp313-win_amd64.whl", hash = "sha256:00dc4e846108a382c5869e77c6ed514394bdeb3403461d25a829711041217d5b", size = 12779090, upload-time = "2025-11-16T22:50:42.503Z" }, + { url = "https://files.pythonhosted.org/packages/8f/88/3f41e13a44ebd4034ee17baa384acac29ba6a4fcc2aca95f6f08ca0447d1/numpy-2.3.5-cp313-cp313-win_arm64.whl", hash = "sha256:0472f11f6ec23a74a906a00b48a4dcf3849209696dff7c189714511268d103ae", size = 10194710, upload-time = "2025-11-16T22:50:44.971Z" }, + { url = "https://files.pythonhosted.org/packages/13/cb/71744144e13389d577f867f745b7df2d8489463654a918eea2eeb166dfc9/numpy-2.3.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:414802f3b97f3c1eef41e530aaba3b3c1620649871d8cb38c6eaff034c2e16bd", size = 16827292, upload-time = "2025-11-16T22:50:47.715Z" }, + { url = "https://files.pythonhosted.org/packages/71/80/ba9dc6f2a4398e7f42b708a7fdc841bb638d353be255655498edbf9a15a8/numpy-2.3.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5ee6609ac3604fa7780e30a03e5e241a7956f8e2fcfe547d51e3afa5247ac47f", size = 12378897, upload-time = "2025-11-16T22:50:51.327Z" }, + { url = "https://files.pythonhosted.org/packages/2e/6d/db2151b9f64264bcceccd51741aa39b50150de9b602d98ecfe7e0c4bff39/numpy-2.3.5-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:86d835afea1eaa143012a2d7a3f45a3adce2d7adc8b4961f0b362214d800846a", size = 5207391, upload-time = "2025-11-16T22:50:54.542Z" }, + { url = "https://files.pythonhosted.org/packages/80/ae/429bacace5ccad48a14c4ae5332f6aa8ab9f69524193511d60ccdfdc65fa/numpy-2.3.5-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:30bc11310e8153ca664b14c5f1b73e94bd0503681fcf136a163de856f3a50139", size = 6721275, upload-time = "2025-11-16T22:50:56.794Z" }, + { url = "https://files.pythonhosted.org/packages/74/5b/1919abf32d8722646a38cd527bc3771eb229a32724ee6ba340ead9b92249/numpy-2.3.5-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1062fde1dcf469571705945b0f221b73928f34a20c904ffb45db101907c3454e", size = 14306855, upload-time = "2025-11-16T22:50:59.208Z" }, + { url = "https://files.pythonhosted.org/packages/a5/87/6831980559434973bebc30cd9c1f21e541a0f2b0c280d43d3afd909b66d0/numpy-2.3.5-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ce581db493ea1a96c0556360ede6607496e8bf9b3a8efa66e06477267bc831e9", size = 16657359, upload-time = "2025-11-16T22:51:01.991Z" }, + { url = "https://files.pythonhosted.org/packages/dd/91/c797f544491ee99fd00495f12ebb7802c440c1915811d72ac5b4479a3356/numpy-2.3.5-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:cc8920d2ec5fa99875b670bb86ddeb21e295cb07aa331810d9e486e0b969d946", size = 16093374, upload-time = "2025-11-16T22:51:05.291Z" }, + { url = "https://files.pythonhosted.org/packages/74/a6/54da03253afcbe7a72785ec4da9c69fb7a17710141ff9ac5fcb2e32dbe64/numpy-2.3.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:9ee2197ef8c4f0dfe405d835f3b6a14f5fee7782b5de51ba06fb65fc9b36e9f1", size = 18594587, upload-time = "2025-11-16T22:51:08.585Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/aff53abbdd41b0ecca94285f325aff42357c6b5abc482a3fcb4994290b18/numpy-2.3.5-cp313-cp313t-win32.whl", hash = "sha256:70b37199913c1bd300ff6e2693316c6f869c7ee16378faf10e4f5e3275b299c3", size = 6405940, upload-time = "2025-11-16T22:51:11.541Z" }, + { url = "https://files.pythonhosted.org/packages/d5/81/50613fec9d4de5480de18d4f8ef59ad7e344d497edbef3cfd80f24f98461/numpy-2.3.5-cp313-cp313t-win_amd64.whl", hash = "sha256:b501b5fa195cc9e24fe102f21ec0a44dffc231d2af79950b451e0d99cea02234", size = 12920341, upload-time = "2025-11-16T22:51:14.312Z" }, + { url = "https://files.pythonhosted.org/packages/bb/ab/08fd63b9a74303947f34f0bd7c5903b9c5532c2d287bead5bdf4c556c486/numpy-2.3.5-cp313-cp313t-win_arm64.whl", hash = "sha256:a80afd79f45f3c4a7d341f13acbe058d1ca8ac017c165d3fa0d3de6bc1a079d7", size = 10262507, upload-time = "2025-11-16T22:51:16.846Z" }, + { url = "https://files.pythonhosted.org/packages/ba/97/1a914559c19e32d6b2e233cf9a6a114e67c856d35b1d6babca571a3e880f/numpy-2.3.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:bf06bc2af43fa8d32d30fae16ad965663e966b1a3202ed407b84c989c3221e82", size = 16735706, upload-time = "2025-11-16T22:51:19.558Z" }, + { url = "https://files.pythonhosted.org/packages/57/d4/51233b1c1b13ecd796311216ae417796b88b0616cfd8a33ae4536330748a/numpy-2.3.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:052e8c42e0c49d2575621c158934920524f6c5da05a1d3b9bab5d8e259e045f0", size = 12264507, upload-time = "2025-11-16T22:51:22.492Z" }, + { url = "https://files.pythonhosted.org/packages/45/98/2fe46c5c2675b8306d0b4a3ec3494273e93e1226a490f766e84298576956/numpy-2.3.5-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:1ed1ec893cff7040a02c8aa1c8611b94d395590d553f6b53629a4461dc7f7b63", size = 5093049, upload-time = "2025-11-16T22:51:25.171Z" }, + { url = "https://files.pythonhosted.org/packages/ce/0e/0698378989bb0ac5f1660c81c78ab1fe5476c1a521ca9ee9d0710ce54099/numpy-2.3.5-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:2dcd0808a421a482a080f89859a18beb0b3d1e905b81e617a188bd80422d62e9", size = 6626603, upload-time = "2025-11-16T22:51:27Z" }, + { url = "https://files.pythonhosted.org/packages/5e/a6/9ca0eecc489640615642a6cbc0ca9e10df70df38c4d43f5a928ff18d8827/numpy-2.3.5-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:727fd05b57df37dc0bcf1a27767a3d9a78cbbc92822445f32cc3436ba797337b", size = 14262696, upload-time = "2025-11-16T22:51:29.402Z" }, + { url = "https://files.pythonhosted.org/packages/c8/f6/07ec185b90ec9d7217a00eeeed7383b73d7e709dae2a9a021b051542a708/numpy-2.3.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fffe29a1ef00883599d1dc2c51aa2e5d80afe49523c261a74933df395c15c520", size = 16597350, upload-time = "2025-11-16T22:51:32.167Z" }, + { url = "https://files.pythonhosted.org/packages/75/37/164071d1dde6a1a84c9b8e5b414fa127981bad47adf3a6b7e23917e52190/numpy-2.3.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8f7f0e05112916223d3f438f293abf0727e1181b5983f413dfa2fefc4098245c", size = 16040190, upload-time = "2025-11-16T22:51:35.403Z" }, + { url = "https://files.pythonhosted.org/packages/08/3c/f18b82a406b04859eb026d204e4e1773eb41c5be58410f41ffa511d114ae/numpy-2.3.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2e2eb32ddb9ccb817d620ac1d8dae7c3f641c1e5f55f531a33e8ab97960a75b8", size = 18536749, upload-time = "2025-11-16T22:51:39.698Z" }, + { url = "https://files.pythonhosted.org/packages/40/79/f82f572bf44cf0023a2fe8588768e23e1592585020d638999f15158609e1/numpy-2.3.5-cp314-cp314-win32.whl", hash = "sha256:66f85ce62c70b843bab1fb14a05d5737741e74e28c7b8b5a064de10142fad248", size = 6335432, upload-time = "2025-11-16T22:51:42.476Z" }, + { url = "https://files.pythonhosted.org/packages/a3/2e/235b4d96619931192c91660805e5e49242389742a7a82c27665021db690c/numpy-2.3.5-cp314-cp314-win_amd64.whl", hash = "sha256:e6a0bc88393d65807d751a614207b7129a310ca4fe76a74e5c7da5fa5671417e", size = 12919388, upload-time = "2025-11-16T22:51:45.275Z" }, + { url = "https://files.pythonhosted.org/packages/07/2b/29fd75ce45d22a39c61aad74f3d718e7ab67ccf839ca8b60866054eb15f8/numpy-2.3.5-cp314-cp314-win_arm64.whl", hash = "sha256:aeffcab3d4b43712bb7a60b65f6044d444e75e563ff6180af8f98dd4b905dfd2", size = 10476651, upload-time = "2025-11-16T22:51:47.749Z" }, + { url = "https://files.pythonhosted.org/packages/17/e1/f6a721234ebd4d87084cfa68d081bcba2f5cfe1974f7de4e0e8b9b2a2ba1/numpy-2.3.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:17531366a2e3a9e30762c000f2c43a9aaa05728712e25c11ce1dbe700c53ad41", size = 16834503, upload-time = "2025-11-16T22:51:50.443Z" }, + { url = "https://files.pythonhosted.org/packages/5c/1c/baf7ffdc3af9c356e1c135e57ab7cf8d247931b9554f55c467efe2c69eff/numpy-2.3.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:d21644de1b609825ede2f48be98dfde4656aefc713654eeee280e37cadc4e0ad", size = 12381612, upload-time = "2025-11-16T22:51:53.609Z" }, + { url = "https://files.pythonhosted.org/packages/74/91/f7f0295151407ddc9ba34e699013c32c3c91944f9b35fcf9281163dc1468/numpy-2.3.5-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:c804e3a5aba5460c73955c955bdbd5c08c354954e9270a2c1565f62e866bdc39", size = 5210042, upload-time = "2025-11-16T22:51:56.213Z" }, + { url = "https://files.pythonhosted.org/packages/2e/3b/78aebf345104ec50dd50a4d06ddeb46a9ff5261c33bcc58b1c4f12f85ec2/numpy-2.3.5-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:cc0a57f895b96ec78969c34f682c602bf8da1a0270b09bc65673df2e7638ec20", size = 6724502, upload-time = "2025-11-16T22:51:58.584Z" }, + { url = "https://files.pythonhosted.org/packages/02/c6/7c34b528740512e57ef1b7c8337ab0b4f0bddf34c723b8996c675bc2bc91/numpy-2.3.5-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:900218e456384ea676e24ea6a0417f030a3b07306d29d7ad843957b40a9d8d52", size = 14308962, upload-time = "2025-11-16T22:52:01.698Z" }, + { url = "https://files.pythonhosted.org/packages/80/35/09d433c5262bc32d725bafc619e095b6a6651caf94027a03da624146f655/numpy-2.3.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:09a1bea522b25109bf8e6f3027bd810f7c1085c64a0c7ce050c1676ad0ba010b", size = 16655054, upload-time = "2025-11-16T22:52:04.267Z" }, + { url = "https://files.pythonhosted.org/packages/7a/ab/6a7b259703c09a88804fa2430b43d6457b692378f6b74b356155283566ac/numpy-2.3.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:04822c00b5fd0323c8166d66c701dc31b7fbd252c100acd708c48f763968d6a3", size = 16091613, upload-time = "2025-11-16T22:52:08.651Z" }, + { url = "https://files.pythonhosted.org/packages/c2/88/330da2071e8771e60d1038166ff9d73f29da37b01ec3eb43cb1427464e10/numpy-2.3.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d6889ec4ec662a1a37eb4b4fb26b6100841804dac55bd9df579e326cdc146227", size = 18591147, upload-time = "2025-11-16T22:52:11.453Z" }, + { url = "https://files.pythonhosted.org/packages/51/41/851c4b4082402d9ea860c3626db5d5df47164a712cb23b54be028b184c1c/numpy-2.3.5-cp314-cp314t-win32.whl", hash = "sha256:93eebbcf1aafdf7e2ddd44c2923e2672e1010bddc014138b229e49725b4d6be5", size = 6479806, upload-time = "2025-11-16T22:52:14.641Z" }, + { url = "https://files.pythonhosted.org/packages/90/30/d48bde1dfd93332fa557cff1972fbc039e055a52021fbef4c2c4b1eefd17/numpy-2.3.5-cp314-cp314t-win_amd64.whl", hash = "sha256:c8a9958e88b65c3b27e22ca2a076311636850b612d6bbfb76e8d156aacde2aaf", size = 13105760, upload-time = "2025-11-16T22:52:17.975Z" }, + { url = "https://files.pythonhosted.org/packages/2d/fd/4b5eb0b3e888d86aee4d198c23acec7d214baaf17ea93c1adec94c9518b9/numpy-2.3.5-cp314-cp314t-win_arm64.whl", hash = "sha256:6203fdf9f3dc5bdaed7319ad8698e685c7a3be10819f41d32a0723e611733b42", size = 10545459, upload-time = "2025-11-16T22:52:20.55Z" }, +] + +[[package]] +name = "nvidia-nccl-cu12" +version = "2.25.1" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4b/28/f62adab24f2d4b2165b22145af56a7598ab535feb6ccd172f76b9106ebaa/nvidia_nccl_cu12-2.25.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4ab428bc915785cc66e8c57cb34c7a64cf739c46702b8db748b6ad6cc7180cf8", size = 201581984, upload-time = "2025-01-24T01:21:47.792Z" }, + { url = "https://files.pythonhosted.org/packages/11/0c/8c78b7603f4e685624a3ea944940f1e75f36d71bd6504330511f4a0e1557/nvidia_nccl_cu12-2.25.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:362aed5963fb9ea2ed2f264409baae30143498fd0e5c503aeaa1badd88cdc54a", size = 201352353, upload-time = "2025-01-24T01:21:27.263Z" }, +] + +[[package]] +name = "opencv-python" +version = "4.11.0.86" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/17/06/68c27a523103dad5837dc5b87e71285280c4f098c60e4fe8a8db6486ab09/opencv-python-4.11.0.86.tar.gz", hash = "sha256:03d60ccae62304860d232272e4a4fda93c39d595780cb40b161b310244b736a4", size = 95171956, upload-time = "2025-01-16T13:52:24.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/4d/53b30a2a3ac1f75f65a59eb29cf2ee7207ce64867db47036ad61743d5a23/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:432f67c223f1dc2824f5e73cdfcd9db0efc8710647d4e813012195dc9122a52a", size = 37326322, upload-time = "2025-01-16T13:52:25.887Z" }, + { url = "https://files.pythonhosted.org/packages/3b/84/0a67490741867eacdfa37bc18df96e08a9d579583b419010d7f3da8ff503/opencv_python-4.11.0.86-cp37-abi3-macosx_13_0_x86_64.whl", hash = "sha256:9d05ef13d23fe97f575153558653e2d6e87103995d54e6a35db3f282fe1f9c66", size = 56723197, upload-time = "2025-01-16T13:55:21.222Z" }, + { url = "https://files.pythonhosted.org/packages/f3/bd/29c126788da65c1fb2b5fb621b7fed0ed5f9122aa22a0868c5e2c15c6d23/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b92ae2c8852208817e6776ba1ea0d6b1e0a1b5431e971a2a0ddd2a8cc398202", size = 42230439, upload-time = "2025-01-16T13:51:35.822Z" }, + { url = "https://files.pythonhosted.org/packages/2c/8b/90eb44a40476fa0e71e05a0283947cfd74a5d36121a11d926ad6f3193cc4/opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b02611523803495003bd87362db3e1d2a0454a6a63025dc6658a9830570aa0d", size = 62986597, upload-time = "2025-01-16T13:52:08.836Z" }, + { url = "https://files.pythonhosted.org/packages/fb/d7/1d5941a9dde095468b288d989ff6539dd69cd429dbf1b9e839013d21b6f0/opencv_python-4.11.0.86-cp37-abi3-win32.whl", hash = "sha256:810549cb2a4aedaa84ad9a1c92fbfdfc14090e2749cedf2c1589ad8359aa169b", size = 29384337, upload-time = "2025-01-16T13:52:13.549Z" }, + { url = "https://files.pythonhosted.org/packages/a4/7d/f1c30a92854540bf789e9cd5dde7ef49bbe63f855b85a2e6b3db8135c591/opencv_python-4.11.0.86-cp37-abi3-win_amd64.whl", hash = "sha256:085ad9b77c18853ea66283e98affefe2de8cc4c1f43eda4c100cf9b2721142ec", size = 39488044, upload-time = "2025-01-16T13:52:21.928Z" }, +] + +[[package]] +name = "opt-einsum" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8c/b9/2ac072041e899a52f20cf9510850ff58295003aa75525e58343591b0cbfb/opt_einsum-3.4.0.tar.gz", hash = "sha256:96ca72f1b886d148241348783498194c577fa30a8faac108586b14f1ba4473ac", size = 63004, upload-time = "2024-09-26T14:33:24.483Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/23/cd/066e86230ae37ed0be70aae89aabf03ca8d9f39c8aea0dec8029455b5540/opt_einsum-3.4.0-py3-none-any.whl", hash = "sha256:69bb92469f86a1565195ece4ac0323943e83477171b91d24c35afe028a90d7cd", size = 71932, upload-time = "2024-09-26T14:33:23.039Z" }, +] + +[[package]] +name = "optree" +version = "0.14.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c7/67/fdacb738f92e46db53cd501ccf6bc8699a243d5e8398bb7f5ae8f5cbb726/optree-0.14.1.tar.gz", hash = "sha256:c011c6124d6dcbfceade2d7c4f836eab66ed8cf9ab12f94535b41a71dd734637", size = 163095, upload-time = "2025-03-01T22:46:10.388Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/da/9d/1f7f1ba818e1e8ceefae17178f127e080d7276c22c1283255dd2afb17ff1/optree-0.14.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6a1536ce5f092d5f65fe73749cc8c782dfdee5b0722c80b20791a9edf2924e3e", size = 640283, upload-time = "2025-03-01T22:44:52.721Z" }, + { url = "https://files.pythonhosted.org/packages/ec/de/868f3f9d0d18ab7a12bc45acb1da6ee5f5c716d9cee0026e6a9d82a476a7/optree-0.14.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4705dfe590cdfd7e4385c6820bea94e88fee82d8c298d393a50a12eb2a982144", size = 343131, upload-time = "2025-03-01T22:44:54.585Z" }, + { url = "https://files.pythonhosted.org/packages/e6/28/1528c8858fe2731d70c442c92b9a02d0be3e54222e3fb75860fecdd167ab/optree-0.14.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8cf7b6d701382b0f5712dd338bbdda512a31af9b793563c422b094b987e794ae", size = 370356, upload-time = "2025-03-01T22:44:55.889Z" }, + { url = "https://files.pythonhosted.org/packages/94/04/5698666255b536d4d7854c6a66566e2ef68598bdd5784743d1e42bd81c1f/optree-0.14.1-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:75bcacae9dc389e0fef192178fc00f8082508148858971e687e5ff6b68f8f5d4", size = 420555, upload-time = "2025-03-01T22:44:57.102Z" }, + { url = "https://files.pythonhosted.org/packages/18/58/226e1603bb819481302bcb982359ffe5d740cb05b1af8b75a2cf71831526/optree-0.14.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4206a5f4cf797c90b9794fb99d7f9f2b71d02c5adb35bcfd8166424df83a6ac8", size = 416193, upload-time = "2025-03-01T22:44:58.992Z" }, + { url = "https://files.pythonhosted.org/packages/c0/11/e4305a61364b4f3ef67f96fd9ffe09fe5a6ed805e564b7d8470e1b39118f/optree-0.14.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8f43551c220f8311bf08e62bd51b3691e09b2f199b90ceaccd88925b6a4494af", size = 386574, upload-time = "2025-03-01T22:45:00.779Z" }, + { url = "https://files.pythonhosted.org/packages/68/5e/2391b7c36dc5d88391057272f281c0b0ff1ca936ce2510be5d739db62a83/optree-0.14.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:262873dde1e2726759814986de043a9850684c7cff3e8cb267c37ff5519e8f6e", size = 407321, upload-time = "2025-03-01T22:45:02.107Z" }, + { url = "https://files.pythonhosted.org/packages/b3/4e/966bf784fb1a9e9927d8a9116edb2f613fe4b8f7739210d49ea31230e0df/optree-0.14.1-cp313-cp313-win32.whl", hash = "sha256:5623a1d0cd38e0a3cd37a35f5c049b6c3d9f7f45284cf596a0f770f89d3a888e", size = 277307, upload-time = "2025-03-01T22:45:03.353Z" }, + { url = "https://files.pythonhosted.org/packages/90/43/93aa65f56b857b8364e76d76eb188a4a6912ed305374b90f9ba30dcf0de9/optree-0.14.1-cp313-cp313-win_amd64.whl", hash = "sha256:25ea23fc6d6c0fa7dcf85afcfe10b43ed4fdf0e9d958a3677cd27fcdf0ca17d6", size = 308413, upload-time = "2025-03-01T22:45:05.158Z" }, + { url = "https://files.pythonhosted.org/packages/60/ce/89c5ede1569f506b9cd74733e292a1fb90f91dbeac02b82d2a440dd2d470/optree-0.14.1-cp313-cp313-win_arm64.whl", hash = "sha256:bfb9f6a6731fba84ed9c4c4498092b25e1c4f1831e097e35a03d8ef28fd47c1f", size = 302631, upload-time = "2025-03-01T22:45:07.026Z" }, + { url = "https://files.pythonhosted.org/packages/f8/44/395d6202cc1b3ae9456b06774bdb294cfccbc0d9ffb20512201b84a19096/optree-0.14.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:33d50c2c10eab1e6b05e3774299dcb3b7322956374eef8c008ae6415239d8c4c", size = 736351, upload-time = "2025-03-01T22:45:08.916Z" }, + { url = "https://files.pythonhosted.org/packages/3d/5c/d3b00d591ec74aba51127edaa766a3bae906ffdfe7c12741c311528f277d/optree-0.14.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:bd5dacc30b66b25ec46252ff5a32036f62d95c6ee22b30eb52b4e65c3d7d0e73", size = 387599, upload-time = "2025-03-01T22:45:10.574Z" }, + { url = "https://files.pythonhosted.org/packages/b0/99/157c631eae1b39b9d530afdf56db9e3babf2312da23b848068241d264478/optree-0.14.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b953f7106acb8e50864e8e7ab2053553bfd97ec3fa8bd4f60cb913b9425111e4", size = 388231, upload-time = "2025-03-01T22:45:11.757Z" }, + { url = "https://files.pythonhosted.org/packages/d7/8f/32d0116048eaa140f212b9b95f3a3b60b3e62683ff59190323e6bf3f0dc1/optree-0.14.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bddda1a943b9d8b5295d995f01f0c934dffe9e1b9432b7af557988adc27048c3", size = 434611, upload-time = "2025-03-01T22:45:15.183Z" }, + { url = "https://files.pythonhosted.org/packages/40/74/77014b203220d7402c1148e102c2d3ff038af923362f3f708142998a5f96/optree-0.14.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:485039725a3773df20b5fca117a71a76af1ebaf3a8773d340a0b5ee9b89b4947", size = 432761, upload-time = "2025-03-01T22:45:16.507Z" }, + { url = "https://files.pythonhosted.org/packages/17/0f/7037a744731207cae9077a8d75f1533c924751f7945b1df6531f96a88c49/optree-0.14.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd06f1144526c997062e1bf2e2a61d6463a2902c3f419e28549b1e0f41a9a009", size = 401171, upload-time = "2025-03-01T22:45:17.85Z" }, + { url = "https://files.pythonhosted.org/packages/ad/29/1f6a22690a5c16a3308be7dcf7f44fa6a15e7015c100cd3321688608e510/optree-0.14.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd96c93a97baca498bd07b5fb3d4b5f25e7a31934418162bff1813d85e79ec3b", size = 422433, upload-time = "2025-03-01T22:45:20.08Z" }, + { url = "https://files.pythonhosted.org/packages/61/da/2d31d9f8da0c8a9a74a9f66beae3f5df4cdbd3d927617fbd443909bee5d5/optree-0.14.1-cp313-cp313t-win32.whl", hash = "sha256:735ac409b5074e6a5c264d3d710d7e181f6e862655983a3c56d34dce78d32c1f", size = 308265, upload-time = "2025-03-01T22:45:21.346Z" }, + { url = "https://files.pythonhosted.org/packages/0c/95/419c37ab6b27afc0a8abffcf3b5f82ef6471ac9a67092b1af2e9001b9350/optree-0.14.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d4af3fef9ddd0cf0bcda4b8e19a69f5ce05ce4bda281d7a673fe800d63e4774b", size = 343890, upload-time = "2025-03-01T22:45:22.696Z" }, + { url = "https://files.pythonhosted.org/packages/15/b8/e66636db8c039bf6d5a65ac9e55a3db71cdb6898c82929572ecfeb01b49e/optree-0.14.1-cp313-cp313t-win_arm64.whl", hash = "sha256:431863e7dd182137f8d1531d5f603dab3a56bc444bf32c6a8b9dac9216162818", size = 336525, upload-time = "2025-03-01T22:45:24.032Z" }, +] + +[[package]] +name = "packaging" +version = "24.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950, upload-time = "2024-11-08T09:47:47.202Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451, upload-time = "2024-11-08T09:47:44.722Z" }, +] + +[[package]] +name = "pandas" +version = "2.2.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "python-dateutil" }, + { name = "pytz" }, + { name = "tzdata" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9c/d6/9f8431bacc2e19dca897724cd097b1bb224a6ad5433784a44b587c7c13af/pandas-2.2.3.tar.gz", hash = "sha256:4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667", size = 4399213, upload-time = "2024-09-20T13:10:04.827Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/22/3b8f4e0ed70644e85cfdcd57454686b9057c6c38d2f74fe4b8bc2527214a/pandas-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f00d1345d84d8c86a63e476bb4955e46458b304b9575dcf71102b5c705320015", size = 12477643, upload-time = "2024-09-20T13:09:25.522Z" }, + { url = "https://files.pythonhosted.org/packages/e4/93/b3f5d1838500e22c8d793625da672f3eec046b1a99257666c94446969282/pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3508d914817e153ad359d7e069d752cdd736a247c322d932eb89e6bc84217f28", size = 11281573, upload-time = "2024-09-20T13:09:28.012Z" }, + { url = "https://files.pythonhosted.org/packages/f5/94/6c79b07f0e5aab1dcfa35a75f4817f5c4f677931d4234afcd75f0e6a66ca/pandas-2.2.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22a9d949bfc9a502d320aa04e5d02feab689d61da4e7764b62c30b991c42c5f0", size = 15196085, upload-time = "2024-09-20T19:02:10.451Z" }, + { url = "https://files.pythonhosted.org/packages/e8/31/aa8da88ca0eadbabd0a639788a6da13bb2ff6edbbb9f29aa786450a30a91/pandas-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3a255b2c19987fbbe62a9dfd6cff7ff2aa9ccab3fc75218fd4b7530f01efa24", size = 12711809, upload-time = "2024-09-20T13:09:30.814Z" }, + { url = "https://files.pythonhosted.org/packages/ee/7c/c6dbdb0cb2a4344cacfb8de1c5808ca885b2e4dcfde8008266608f9372af/pandas-2.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:800250ecdadb6d9c78eae4990da62743b857b470883fa27f652db8bdde7f6659", size = 16356316, upload-time = "2024-09-20T19:02:13.825Z" }, + { url = "https://files.pythonhosted.org/packages/57/b7/8b757e7d92023b832869fa8881a992696a0bfe2e26f72c9ae9f255988d42/pandas-2.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6374c452ff3ec675a8f46fd9ab25c4ad0ba590b71cf0656f8b6daa5202bca3fb", size = 14022055, upload-time = "2024-09-20T13:09:33.462Z" }, + { url = "https://files.pythonhosted.org/packages/3b/bc/4b18e2b8c002572c5a441a64826252ce5da2aa738855747247a971988043/pandas-2.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:61c5ad4043f791b61dd4752191d9f07f0ae412515d59ba8f005832a532f8736d", size = 11481175, upload-time = "2024-09-20T13:09:35.871Z" }, + { url = "https://files.pythonhosted.org/packages/76/a3/a5d88146815e972d40d19247b2c162e88213ef51c7c25993942c39dbf41d/pandas-2.2.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3b71f27954685ee685317063bf13c7709a7ba74fc996b84fc6821c59b0f06468", size = 12615650, upload-time = "2024-09-20T13:09:38.685Z" }, + { url = "https://files.pythonhosted.org/packages/9c/8c/f0fd18f6140ddafc0c24122c8a964e48294acc579d47def376fef12bcb4a/pandas-2.2.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:38cf8125c40dae9d5acc10fa66af8ea6fdf760b2714ee482ca691fc66e6fcb18", size = 11290177, upload-time = "2024-09-20T13:09:41.141Z" }, + { url = "https://files.pythonhosted.org/packages/ed/f9/e995754eab9c0f14c6777401f7eece0943840b7a9fc932221c19d1abee9f/pandas-2.2.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba96630bc17c875161df3818780af30e43be9b166ce51c9a18c1feae342906c2", size = 14651526, upload-time = "2024-09-20T19:02:16.905Z" }, + { url = "https://files.pythonhosted.org/packages/25/b0/98d6ae2e1abac4f35230aa756005e8654649d305df9a28b16b9ae4353bff/pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1db71525a1538b30142094edb9adc10be3f3e176748cd7acc2240c2f2e5aa3a4", size = 11871013, upload-time = "2024-09-20T13:09:44.39Z" }, + { url = "https://files.pythonhosted.org/packages/cc/57/0f72a10f9db6a4628744c8e8f0df4e6e21de01212c7c981d31e50ffc8328/pandas-2.2.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:15c0e1e02e93116177d29ff83e8b1619c93ddc9c49083f237d4312337a61165d", size = 15711620, upload-time = "2024-09-20T19:02:20.639Z" }, + { url = "https://files.pythonhosted.org/packages/ab/5f/b38085618b950b79d2d9164a711c52b10aefc0ae6833b96f626b7021b2ed/pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a", size = 13098436, upload-time = "2024-09-20T13:09:48.112Z" }, +] + +[[package]] +name = "patsy" +version = "1.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d1/81/74f6a65b848ffd16c18f920620ce999fe45fe27f01ab3911260ce4ed85e4/patsy-1.0.1.tar.gz", hash = "sha256:e786a9391eec818c054e359b737bbce692f051aee4c661f4141cc88fb459c0c4", size = 396010, upload-time = "2024-11-12T14:10:54.642Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/87/2b/b50d3d08ea0fc419c183a84210571eba005328efa62b6b98bc28e9ead32a/patsy-1.0.1-py2.py3-none-any.whl", hash = "sha256:751fb38f9e97e62312e921a1954b81e1bb2bcda4f5eeabaf94db251ee791509c", size = 232923, upload-time = "2024-11-12T14:10:52.85Z" }, +] + +[[package]] +name = "pbr" +version = "6.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "setuptools" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/01/d2/510cc0d218e753ba62a1bc1434651db3cd797a9716a0a66cc714cb4f0935/pbr-6.1.1.tar.gz", hash = "sha256:93ea72ce6989eb2eed99d0f75721474f69ad88128afdef5ac377eb797c4bf76b", size = 125702, upload-time = "2025-02-04T14:28:06.514Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/47/ac/684d71315abc7b1214d59304e23a982472967f6bf4bde5a98f1503f648dc/pbr-6.1.1-py2.py3-none-any.whl", hash = "sha256:38d4daea5d9fa63b3f626131b9d34947fd0c8be9b05a29276870580050a25a76", size = 108997, upload-time = "2025-02-04T14:28:03.168Z" }, +] + +[[package]] +name = "pillow" +version = "11.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/af/c097e544e7bd278333db77933e535098c259609c4eb3b85381109602fb5b/pillow-11.1.0.tar.gz", hash = "sha256:368da70808b36d73b4b390a8ffac11069f8a5c85f29eff1f1b01bcf3ef5b2a20", size = 46742715, upload-time = "2025-01-02T08:13:58.407Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/31/9ca79cafdce364fd5c980cd3416c20ce1bebd235b470d262f9d24d810184/pillow-11.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ae98e14432d458fc3de11a77ccb3ae65ddce70f730e7c76140653048c71bfcbc", size = 3226640, upload-time = "2025-01-02T08:11:58.329Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0f/ff07ad45a1f172a497aa393b13a9d81a32e1477ef0e869d030e3c1532521/pillow-11.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cc1331b6d5a6e144aeb5e626f4375f5b7ae9934ba620c0ac6b3e43d5e683a0f0", size = 3101437, upload-time = "2025-01-02T08:12:01.797Z" }, + { url = "https://files.pythonhosted.org/packages/08/2f/9906fca87a68d29ec4530be1f893149e0cb64a86d1f9f70a7cfcdfe8ae44/pillow-11.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:758e9d4ef15d3560214cddbc97b8ef3ef86ce04d62ddac17ad39ba87e89bd3b1", size = 4326605, upload-time = "2025-01-02T08:12:05.224Z" }, + { url = "https://files.pythonhosted.org/packages/b0/0f/f3547ee15b145bc5c8b336401b2d4c9d9da67da9dcb572d7c0d4103d2c69/pillow-11.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b523466b1a31d0dcef7c5be1f20b942919b62fd6e9a9be199d035509cbefc0ec", size = 4411173, upload-time = "2025-01-02T08:12:08.281Z" }, + { url = "https://files.pythonhosted.org/packages/b1/df/bf8176aa5db515c5de584c5e00df9bab0713548fd780c82a86cba2c2fedb/pillow-11.1.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:9044b5e4f7083f209c4e35aa5dd54b1dd5b112b108648f5c902ad586d4f945c5", size = 4369145, upload-time = "2025-01-02T08:12:11.411Z" }, + { url = "https://files.pythonhosted.org/packages/de/7c/7433122d1cfadc740f577cb55526fdc39129a648ac65ce64db2eb7209277/pillow-11.1.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:3764d53e09cdedd91bee65c2527815d315c6b90d7b8b79759cc48d7bf5d4f114", size = 4496340, upload-time = "2025-01-02T08:12:15.29Z" }, + { url = "https://files.pythonhosted.org/packages/25/46/dd94b93ca6bd555588835f2504bd90c00d5438fe131cf01cfa0c5131a19d/pillow-11.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:31eba6bbdd27dde97b0174ddf0297d7a9c3a507a8a1480e1e60ef914fe23d352", size = 4296906, upload-time = "2025-01-02T08:12:17.485Z" }, + { url = "https://files.pythonhosted.org/packages/a8/28/2f9d32014dfc7753e586db9add35b8a41b7a3b46540e965cb6d6bc607bd2/pillow-11.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b5d658fbd9f0d6eea113aea286b21d3cd4d3fd978157cbf2447a6035916506d3", size = 4431759, upload-time = "2025-01-02T08:12:20.382Z" }, + { url = "https://files.pythonhosted.org/packages/33/48/19c2cbe7403870fbe8b7737d19eb013f46299cdfe4501573367f6396c775/pillow-11.1.0-cp313-cp313-win32.whl", hash = "sha256:f86d3a7a9af5d826744fabf4afd15b9dfef44fe69a98541f666f66fbb8d3fef9", size = 2291657, upload-time = "2025-01-02T08:12:23.922Z" }, + { url = "https://files.pythonhosted.org/packages/3b/ad/285c556747d34c399f332ba7c1a595ba245796ef3e22eae190f5364bb62b/pillow-11.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:593c5fd6be85da83656b93ffcccc2312d2d149d251e98588b14fbc288fd8909c", size = 2626304, upload-time = "2025-01-02T08:12:28.069Z" }, + { url = "https://files.pythonhosted.org/packages/e5/7b/ef35a71163bf36db06e9c8729608f78dedf032fc8313d19bd4be5c2588f3/pillow-11.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:11633d58b6ee5733bde153a8dafd25e505ea3d32e261accd388827ee987baf65", size = 2375117, upload-time = "2025-01-02T08:12:30.064Z" }, + { url = "https://files.pythonhosted.org/packages/79/30/77f54228401e84d6791354888549b45824ab0ffde659bafa67956303a09f/pillow-11.1.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:70ca5ef3b3b1c4a0812b5c63c57c23b63e53bc38e758b37a951e5bc466449861", size = 3230060, upload-time = "2025-01-02T08:12:32.362Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b1/56723b74b07dd64c1010fee011951ea9c35a43d8020acd03111f14298225/pillow-11.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:8000376f139d4d38d6851eb149b321a52bb8893a88dae8ee7d95840431977081", size = 3106192, upload-time = "2025-01-02T08:12:34.361Z" }, + { url = "https://files.pythonhosted.org/packages/e1/cd/7bf7180e08f80a4dcc6b4c3a0aa9e0b0ae57168562726a05dc8aa8fa66b0/pillow-11.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ee85f0696a17dd28fbcfceb59f9510aa71934b483d1f5601d1030c3c8304f3c", size = 4446805, upload-time = "2025-01-02T08:12:36.99Z" }, + { url = "https://files.pythonhosted.org/packages/97/42/87c856ea30c8ed97e8efbe672b58c8304dee0573f8c7cab62ae9e31db6ae/pillow-11.1.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:dd0e081319328928531df7a0e63621caf67652c8464303fd102141b785ef9547", size = 4530623, upload-time = "2025-01-02T08:12:41.912Z" }, + { url = "https://files.pythonhosted.org/packages/ff/41/026879e90c84a88e33fb00cc6bd915ac2743c67e87a18f80270dfe3c2041/pillow-11.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e63e4e5081de46517099dc30abe418122f54531a6ae2ebc8680bcd7096860eab", size = 4465191, upload-time = "2025-01-02T08:12:45.186Z" }, + { url = "https://files.pythonhosted.org/packages/e5/fb/a7960e838bc5df57a2ce23183bfd2290d97c33028b96bde332a9057834d3/pillow-11.1.0-cp313-cp313t-win32.whl", hash = "sha256:dda60aa465b861324e65a78c9f5cf0f4bc713e4309f83bc387be158b077963d9", size = 2295494, upload-time = "2025-01-02T08:12:47.098Z" }, + { url = "https://files.pythonhosted.org/packages/d7/6c/6ec83ee2f6f0fda8d4cf89045c6be4b0373ebfc363ba8538f8c999f63fcd/pillow-11.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ad5db5781c774ab9a9b2c4302bbf0c1014960a0a7be63278d13ae6fdf88126fe", size = 2631595, upload-time = "2025-01-02T08:12:50.47Z" }, + { url = "https://files.pythonhosted.org/packages/cf/6c/41c21c6c8af92b9fea313aa47c75de49e2f9a467964ee33eb0135d47eb64/pillow-11.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:67cd427c68926108778a9005f2a04adbd5e67c442ed21d95389fe1d595458756", size = 2377651, upload-time = "2025-01-02T08:12:53.356Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.3.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/13/fc/128cc9cb8f03208bdbf93d3aa862e16d376844a14f9a0ce5cf4507372de4/platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907", size = 21302, upload-time = "2024-09-17T19:06:50.688Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb", size = 18439, upload-time = "2024-09-17T19:06:49.212Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "pre-commit" +version = "4.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cfgv" }, + { name = "identify" }, + { name = "nodeenv" }, + { name = "pyyaml" }, + { name = "virtualenv" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2a/13/b62d075317d8686071eb843f0bb1f195eb332f48869d3c31a4c6f1e063ac/pre_commit-4.1.0.tar.gz", hash = "sha256:ae3f018575a588e30dfddfab9a05448bfbd6b73d78709617b5a2b853549716d4", size = 193330, upload-time = "2025-01-20T18:31:48.681Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/b3/df14c580d82b9627d173ceea305ba898dca135feb360b6d84019d0803d3b/pre_commit-4.1.0-py2.py3-none-any.whl", hash = "sha256:d29e7cb346295bcc1cc75fc3e92e343495e3ea0196c9ec6ba53f49f10ab6ae7b", size = 220560, upload-time = "2025-01-20T18:31:47.319Z" }, +] + +[[package]] +name = "projectq" +version = "0.8.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "matplotlib" }, + { name = "networkx" }, + { name = "numpy" }, + { name = "requests" }, + { name = "scipy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/30/88/48c8347cadf6afb7f329e7c06d30880159e2a50b6e8a643c7667c26ffaf0/projectq-0.8.0.tar.gz", hash = "sha256:0bcd242afabe947ac4737dffab1de62628b84125ee6ccb3ec23bd4f1d082ec60", size = 433667, upload-time = "2022-10-18T16:03:17.779Z" } + +[[package]] +name = "protobuf" +version = "5.29.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/d1/e0a911544ca9993e0f17ce6d3cc0932752356c1b0a834397f28e63479344/protobuf-5.29.3.tar.gz", hash = "sha256:5da0f41edaf117bde316404bad1a486cb4ededf8e4a54891296f648e8e076620", size = 424945, upload-time = "2025-01-08T21:38:51.572Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/7a/1e38f3cafa022f477ca0f57a1f49962f21ad25850c3ca0acd3b9d0091518/protobuf-5.29.3-cp310-abi3-win32.whl", hash = "sha256:3ea51771449e1035f26069c4c7fd51fba990d07bc55ba80701c78f886bf9c888", size = 422708, upload-time = "2025-01-08T21:38:31.799Z" }, + { url = "https://files.pythonhosted.org/packages/61/fa/aae8e10512b83de633f2646506a6d835b151edf4b30d18d73afd01447253/protobuf-5.29.3-cp310-abi3-win_amd64.whl", hash = "sha256:a4fa6f80816a9a0678429e84973f2f98cbc218cca434abe8db2ad0bffc98503a", size = 434508, upload-time = "2025-01-08T21:38:35.489Z" }, + { url = "https://files.pythonhosted.org/packages/dd/04/3eaedc2ba17a088961d0e3bd396eac764450f431621b58a04ce898acd126/protobuf-5.29.3-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:a8434404bbf139aa9e1300dbf989667a83d42ddda9153d8ab76e0d5dcaca484e", size = 417825, upload-time = "2025-01-08T21:38:36.642Z" }, + { url = "https://files.pythonhosted.org/packages/4f/06/7c467744d23c3979ce250397e26d8ad8eeb2bea7b18ca12ad58313c1b8d5/protobuf-5.29.3-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:daaf63f70f25e8689c072cfad4334ca0ac1d1e05a92fc15c54eb9cf23c3efd84", size = 319573, upload-time = "2025-01-08T21:38:37.896Z" }, + { url = "https://files.pythonhosted.org/packages/a8/45/2ebbde52ad2be18d3675b6bee50e68cd73c9e0654de77d595540b5129df8/protobuf-5.29.3-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:c027e08a08be10b67c06bf2370b99c811c466398c357e615ca88c91c07f0910f", size = 319672, upload-time = "2025-01-08T21:38:40.204Z" }, + { url = "https://files.pythonhosted.org/packages/fd/b2/ab07b09e0f6d143dfb839693aa05765257bceaa13d03bf1a696b78323e7a/protobuf-5.29.3-py3-none-any.whl", hash = "sha256:0a18ed4a24198528f2333802eb075e59dea9d679ab7a6c5efb017a59004d849f", size = 172550, upload-time = "2025-01-08T21:38:50.439Z" }, +] + +[[package]] +name = "pygments" +version = "2.19.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84/pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f", size = 4968581, upload-time = "2025-01-06T17:26:30.443Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/0b/9fcc47d19c48b59121088dd6da2488a49d5f72dacf8262e2790a1d2c7d15/pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c", size = 1225293, upload-time = "2025-01-06T17:26:25.553Z" }, +] + +[[package]] +name = "pyparsing" +version = "3.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8b/1a/3544f4f299a47911c2ab3710f534e52fea62a633c96806995da5d25be4b2/pyparsing-3.2.1.tar.gz", hash = "sha256:61980854fd66de3a90028d679a954d5f2623e83144b5afe5ee86f43d762e5f0a", size = 1067694, upload-time = "2024-12-31T20:59:46.157Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1c/a7/c8a2d361bf89c0d9577c934ebb7421b25dc84bf3a8e3ac0a40aed9acc547/pyparsing-3.2.1-py3-none-any.whl", hash = "sha256:506ff4f4386c4cec0590ec19e6302d3aedb992fdc02c761e90416f158dacf8e1", size = 107716, upload-time = "2024-12-31T20:59:42.738Z" }, +] + +[[package]] +name = "pytest" +version = "9.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/07/56/f013048ac4bc4c1d9be45afd4ab209ea62822fb1598f40687e6bf45dcea4/pytest-9.0.1.tar.gz", hash = "sha256:3e9c069ea73583e255c3b21cf46b8d3c56f6e3a1a8f6da94ccb0fcf57b9d73c8", size = 1564125, upload-time = "2025-11-12T13:05:09.333Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/8b/6300fb80f858cda1c51ffa17075df5d846757081d11ab4aa35cef9e6258b/pytest-9.0.1-py3-none-any.whl", hash = "sha256:67be0030d194df2dfa7b556f2e56fb3c3315bd5c8822c6951162b92b32ce7dad", size = 373668, upload-time = "2025-11-12T13:05:07.379Z" }, +] + +[[package]] +name = "python-bellshade" +version = "1.0.0" +source = { virtual = "." } +dependencies = [ + { name = "beautifulsoup4" }, + { name = "fake-useragent" }, + { name = "keras" }, + { name = "lxml" }, + { name = "matplotlib" }, + { name = "numpy" }, + { name = "opencv-python" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "pre-commit" }, + { name = "projectq" }, + { name = "pytest" }, + { name = "qiskit" }, + { name = "requests" }, + { name = "scikit-fuzzy" }, + { name = "scikit-learn" }, + { name = "statsmodels" }, + { name = "sympy" }, + { name = "tensorflow" }, + { name = "types-requests" }, + { name = "xgboost" }, +] + +[package.metadata] +requires-dist = [ + { name = "beautifulsoup4" }, + { name = "fake-useragent" }, + { name = "keras" }, + { name = "lxml" }, + { name = "matplotlib" }, + { name = "numpy" }, + { name = "opencv-python" }, + { name = "pandas" }, + { name = "pillow" }, + { name = "pre-commit", specifier = ">=4.1.0" }, + { name = "projectq" }, + { name = "pytest", specifier = ">=9.0.1" }, + { name = "qiskit" }, + { name = "requests" }, + { name = "scikit-fuzzy" }, + { name = "scikit-learn" }, + { name = "statsmodels" }, + { name = "sympy" }, + { name = "tensorflow" }, + { name = "types-requests" }, + { name = "xgboost" }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[package]] +name = "pytz" +version = "2025.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/57/df1c9157c8d5a05117e455d66fd7cf6dbc46974f832b1058ed4856785d8a/pytz-2025.1.tar.gz", hash = "sha256:c2db42be2a2518b28e65f9207c4d05e6ff547d1efa4086469ef855e4ab70178e", size = 319617, upload-time = "2025-01-31T01:54:48.615Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/eb/38/ac33370d784287baa1c3d538978b5e2ea064d4c1b93ffbd12826c190dd10/pytz-2025.1-py2.py3-none-any.whl", hash = "sha256:89dd22dca55b46eac6eda23b2d72721bf1bdfef212645d81513ef5d03038de57", size = 507930, upload-time = "2025-01-31T01:54:45.634Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631, upload-time = "2024-08-06T20:33:50.674Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309, upload-time = "2024-08-06T20:32:43.4Z" }, + { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679, upload-time = "2024-08-06T20:32:44.801Z" }, + { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428, upload-time = "2024-08-06T20:32:46.432Z" }, + { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361, upload-time = "2024-08-06T20:32:51.188Z" }, + { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523, upload-time = "2024-08-06T20:32:53.019Z" }, + { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660, upload-time = "2024-08-06T20:32:54.708Z" }, + { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597, upload-time = "2024-08-06T20:32:56.985Z" }, + { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527, upload-time = "2024-08-06T20:33:03.001Z" }, + { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446, upload-time = "2024-08-06T20:33:04.33Z" }, +] + +[[package]] +name = "qiskit" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "dill" }, + { name = "numpy" }, + { name = "python-dateutil" }, + { name = "rustworkx" }, + { name = "scipy" }, + { name = "stevedore" }, + { name = "symengine" }, + { name = "sympy" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/aa/67/ad3654ecabb3785a2b2a2747bc37bce8074153761b8f0415ee208cf67e7f/qiskit-1.4.0.tar.gz", hash = "sha256:c5dcdf171bbec743c90c9b9e9f94a422ec90fcbf908c904d54b6b91f562fad83", size = 3933810, upload-time = "2025-02-21T10:21:28.246Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/80/28/6ce1290a85afec236554314bb3f4f0f0d518ef2cbbf01d0c508860a659ed/qiskit-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9a6ac6f124f97d62f1843ce2aaf5a6c0311fd25c90a0d2b90a600e0fb2346732", size = 6567539, upload-time = "2025-02-21T10:21:10.013Z" }, + { url = "https://files.pythonhosted.org/packages/47/f0/faafa9ced24353ce58f4114f5e23ede6a3360a1b142e7daf4efacf22aed9/qiskit-1.4.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:bf1dd1a2d9d5375dd712594dd7de2d9d3cae8cbb22c820a4c0f88b26c03a4a64", size = 6242939, upload-time = "2025-02-21T10:21:13.603Z" }, + { url = "https://files.pythonhosted.org/packages/5c/91/f2442baa598d88d32918ec3a5aac3d311e5a138c3d39e3b8bdacdca57c07/qiskit-1.4.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b563fefc4485cdd44338ad091311c2c72a7855d5c0d0bfdfc6cb35f9050ff800", size = 6392786, upload-time = "2025-02-21T11:46:50.2Z" }, + { url = "https://files.pythonhosted.org/packages/26/45/8d8e52572187c405604436e7866cec9b250b626d28478c4260667ed11ab0/qiskit-1.4.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:585b6a7d3001ee619af08816d59492840f5650ac831ae62e24877049605abfc5", size = 6726907, upload-time = "2025-02-21T10:21:16.923Z" }, + { url = "https://files.pythonhosted.org/packages/db/5d/848ecee68192a4fffd1195f9749f2b7eaa751ff9cf6cf9846d7dbfefa74d/qiskit-1.4.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4b818df95c835d419ebcb64ca4cec924c17c9f56486b7d52e636c2f258d2083e", size = 6796769, upload-time = "2025-02-21T11:46:52.907Z" }, + { url = "https://files.pythonhosted.org/packages/d9/56/4474fb46faf829f6e67cd1b0d884c3e5dfdc5f401ed8c136248fb8246414/qiskit-1.4.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b50295c80bffd21194837ee63dae3de0bbf1a432c3571e6e6bb6f8464fd1ee0c", size = 7882280, upload-time = "2025-02-21T11:46:55.114Z" }, + { url = "https://files.pythonhosted.org/packages/f4/ab/fad45892bcc207ef7eed141d9b81e840c78b53da6701cc0dd5d51eb499f3/qiskit-1.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4efe9ee228c8601b6f0c6b9613d981ae9b0cce8161efc4deb8432800b143d40", size = 6748438, upload-time = "2025-02-21T10:21:20.062Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/b85b9db39bb7ee61fc7093dddc99a2ca18b1d84f2ee9b3ef5e2c039877f4/qiskit-1.4.0-cp39-abi3-win32.whl", hash = "sha256:f47cdd3d4df71581fd9ccffe5c1cb3f10e3e2c3254f8cf0e963e192ed48633f9", size = 6138354, upload-time = "2025-02-21T10:21:23.203Z" }, + { url = "https://files.pythonhosted.org/packages/73/16/6354248452dbd4aca537460a75effb59d9b01b4101a17df8235d345c86c8/qiskit-1.4.0-cp39-abi3-win_amd64.whl", hash = "sha256:9cd963e0b74983d8c1a6db5b64446bf57598d181a7ad85bd5e22911b5251303d", size = 6499047, upload-time = "2025-02-21T10:21:26.209Z" }, +] + +[[package]] +name = "requests" +version = "2.32.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218, upload-time = "2024-05-29T15:37:49.536Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928, upload-time = "2024-05-29T15:37:47.027Z" }, +] + +[[package]] +name = "rich" +version = "13.9.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ab/3a/0316b28d0761c6734d6bc14e770d85506c986c85ffb239e688eeaab2c2bc/rich-13.9.4.tar.gz", hash = "sha256:439594978a49a09530cff7ebc4b5c7103ef57baf48d5ea3184f21d9a2befa098", size = 223149, upload-time = "2024-11-01T16:43:57.873Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/19/71/39c7c0d87f8d4e6c020a393182060eaefeeae6c01dab6a84ec346f2567df/rich-13.9.4-py3-none-any.whl", hash = "sha256:6049d5e6ec054bf2779ab3358186963bac2ea89175919d699e378b99738c2a90", size = 242424, upload-time = "2024-11-01T16:43:55.817Z" }, +] + +[[package]] +name = "rustworkx" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a5/c4/6d6ef39e57610d54c5f106dc3dece9eebce8b9d52d561ae092e3aede1b66/rustworkx-0.16.0.tar.gz", hash = "sha256:9f0dcb83f38d5ca2c3a683eb9b6951c8aec3262fbfe5141946a7ee5ba37e0bb6", size = 349524, upload-time = "2025-01-24T01:22:34.686Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f8/70/36f5916aee41ffe4f604ad75742eb1bb1b849fb568e010555f9d159cd93e/rustworkx-0.16.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:476a6c67b0142acd941691943750cc6737a48372304489969c2b62d30aaf4c27", size = 2141999, upload-time = "2025-01-24T01:21:50.3Z" }, + { url = "https://files.pythonhosted.org/packages/94/47/7e7c37fb73efcc87be6414b235534605c4008a4cdbd92a61db23b878eecd/rustworkx-0.16.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:bef2ef42870f806af93979b457e240f6dfa4f867ca33965c620f3a804409ed3a", size = 1940309, upload-time = "2025-01-24T01:21:52.053Z" }, + { url = "https://files.pythonhosted.org/packages/c6/42/a6d6b3137be55ef1d887becdf6b64b0917c7d437bd483065a88500a55603/rustworkx-0.16.0-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0db3a73bf68b3e66c08322a2fc95d3aa663d037d9b4e49c3509da4898d3529cc", size = 2195350, upload-time = "2025-01-24T01:21:53.785Z" }, + { url = "https://files.pythonhosted.org/packages/59/d2/1bc99df831c132c4b7420a85ce9150e065f4c993798f31b6a4229f238398/rustworkx-0.16.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f12a13d7486234fa2a84746d5e41f436bf9df43548043e7a232f48804ff8c61", size = 1971689, upload-time = "2025-01-24T17:09:26.338Z" }, + { url = "https://files.pythonhosted.org/packages/b5/3b/1125e7eb834f4408bcec3cee79947efd504c715fb7ab1876f8cd4bbca497/rustworkx-0.16.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:89efd5c3a4653ddacc55ca39f28b261d43deec7d678f8f8fc6b76b5087f1dfea", size = 3297342, upload-time = "2025-01-24T03:18:48.885Z" }, + { url = "https://files.pythonhosted.org/packages/4f/e2/e21187b255c6211d71db0d08a44fc16771038b2af41712d66c408d9bec16/rustworkx-0.16.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec0c12aac8c54910ace20ac6ada4b890cd39f95f69100514715f8ad7af9041e4", size = 2110107, upload-time = "2025-01-24T01:21:58.884Z" }, + { url = "https://files.pythonhosted.org/packages/3c/79/e3fcff21f31253ea85ef196bf2fcabad7802b11468f7d3a5d592cd0ac789/rustworkx-0.16.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:d650e39fc1a1534335f7517358ebfc3478bb235428463cfcd7c5750d50377b33", size = 2007544, upload-time = "2025-01-26T04:16:53.807Z" }, + { url = "https://files.pythonhosted.org/packages/67/04/741ed09c2b0dc0f360f85270c1179ed433785372ac9ab6ab26d3dd3ae02d/rustworkx-0.16.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:293180b83509ee9bff4c3af7ccc1024f6528d61b65d0cb7320bd31924f10cb71", size = 2172787, upload-time = "2025-01-24T01:22:01.282Z" }, + { url = "https://files.pythonhosted.org/packages/6d/fd/9c71e90f8cde76fed95dbc1e7d019977b89a29492f49ded232c6fad3055f/rustworkx-0.16.0-cp39-abi3-win32.whl", hash = "sha256:040c4368729cf502f756a3b0ff5f1c6915fc389f74dcc6afc6c3833688c97c01", size = 1840183, upload-time = "2025-01-24T01:22:03.643Z" }, + { url = "https://files.pythonhosted.org/packages/3e/79/9bdd52d2a33d468c81c1827de1b588080cb055d1d3561b194ab7bf2635b5/rustworkx-0.16.0-cp39-abi3-win_amd64.whl", hash = "sha256:905df608843c32fa45ac023687769fe13056edf7584474c801d5c50705d76e9b", size = 1953559, upload-time = "2025-01-24T01:22:06.136Z" }, +] + +[[package]] +name = "scikit-fuzzy" +version = "0.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/98/1c/eeffa327ecf44e11fdd312b2b8cf5a7ac7f6cd2956646980893dc4aa56d8/scikit_fuzzy-0.5.0.tar.gz", hash = "sha256:2ee5340523aa7635ca568b9d8029c7738d05f9ea550fc89d4054b4cb50f34e7f", size = 958406, upload-time = "2024-08-22T22:20:45.697Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9d/06/da70811f95c4a3bada55e7b20c957548a4d9bc21150916f0c024286d67c7/scikit_fuzzy-0.5.0-py2.py3-none-any.whl", hash = "sha256:e456c365146bc5c58d9f593f4127ac783112e2daf89f87b12c6ef3c38e4087dd", size = 920817, upload-time = "2024-08-22T22:20:43.447Z" }, +] + +[[package]] +name = "scikit-learn" +version = "1.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "joblib" }, + { name = "numpy" }, + { name = "scipy" }, + { name = "threadpoolctl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/a5/4ae3b3a0755f7b35a280ac90b28817d1f380318973cff14075ab41ef50d9/scikit_learn-1.6.1.tar.gz", hash = "sha256:b4fc2525eca2c69a59260f583c56a7557c6ccdf8deafdba6e060f94c1c59738e", size = 7068312, upload-time = "2025-01-10T08:07:55.348Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/59/8eb1872ca87009bdcdb7f3cdc679ad557b992c12f4b61f9250659e592c63/scikit_learn-1.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2ffa1e9e25b3d93990e74a4be2c2fc61ee5af85811562f1288d5d055880c4322", size = 12010001, upload-time = "2025-01-10T08:06:58.613Z" }, + { url = "https://files.pythonhosted.org/packages/9d/05/f2fc4effc5b32e525408524c982c468c29d22f828834f0625c5ef3d601be/scikit_learn-1.6.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:dc5cf3d68c5a20ad6d571584c0750ec641cc46aeef1c1507be51300e6003a7e1", size = 11096360, upload-time = "2025-01-10T08:07:01.556Z" }, + { url = "https://files.pythonhosted.org/packages/c8/e4/4195d52cf4f113573fb8ebc44ed5a81bd511a92c0228889125fac2f4c3d1/scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c06beb2e839ecc641366000ca84f3cf6fa9faa1777e29cf0c04be6e4d096a348", size = 12209004, upload-time = "2025-01-10T08:07:06.931Z" }, + { url = "https://files.pythonhosted.org/packages/94/be/47e16cdd1e7fcf97d95b3cb08bde1abb13e627861af427a3651fcb80b517/scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8ca8cb270fee8f1f76fa9bfd5c3507d60c6438bbee5687f81042e2bb98e5a97", size = 13171776, upload-time = "2025-01-10T08:07:11.715Z" }, + { url = "https://files.pythonhosted.org/packages/34/b0/ca92b90859070a1487827dbc672f998da95ce83edce1270fc23f96f1f61a/scikit_learn-1.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:7a1c43c8ec9fde528d664d947dc4c0789be4077a3647f232869f41d9bf50e0fb", size = 11071865, upload-time = "2025-01-10T08:07:16.088Z" }, + { url = "https://files.pythonhosted.org/packages/12/ae/993b0fb24a356e71e9a894e42b8a9eec528d4c70217353a1cd7a48bc25d4/scikit_learn-1.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a17c1dea1d56dcda2fac315712f3651a1fea86565b64b48fa1bc090249cbf236", size = 11955804, upload-time = "2025-01-10T08:07:20.385Z" }, + { url = "https://files.pythonhosted.org/packages/d6/54/32fa2ee591af44507eac86406fa6bba968d1eb22831494470d0a2e4a1eb1/scikit_learn-1.6.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:6a7aa5f9908f0f28f4edaa6963c0a6183f1911e63a69aa03782f0d924c830a35", size = 11100530, upload-time = "2025-01-10T08:07:23.675Z" }, + { url = "https://files.pythonhosted.org/packages/3f/58/55856da1adec655bdce77b502e94a267bf40a8c0b89f8622837f89503b5a/scikit_learn-1.6.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0650e730afb87402baa88afbf31c07b84c98272622aaba002559b614600ca691", size = 12433852, upload-time = "2025-01-10T08:07:26.817Z" }, + { url = "https://files.pythonhosted.org/packages/ff/4f/c83853af13901a574f8f13b645467285a48940f185b690936bb700a50863/scikit_learn-1.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:3f59fe08dc03ea158605170eb52b22a105f238a5d512c4470ddeca71feae8e5f", size = 11337256, upload-time = "2025-01-10T08:07:31.084Z" }, +] + +[[package]] +name = "scipy" +version = "1.15.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b7/b9/31ba9cd990e626574baf93fbc1ac61cf9ed54faafd04c479117517661637/scipy-1.15.2.tar.gz", hash = "sha256:cd58a314d92838f7e6f755c8a2167ead4f27e1fd5c1251fd54289569ef3495ec", size = 59417316, upload-time = "2025-02-17T00:42:24.791Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/53/40/09319f6e0f276ea2754196185f95cd191cb852288440ce035d5c3a931ea2/scipy-1.15.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01edfac9f0798ad6b46d9c4c9ca0e0ad23dbf0b1eb70e96adb9fa7f525eff0bf", size = 38717587, upload-time = "2025-02-17T00:32:53.196Z" }, + { url = "https://files.pythonhosted.org/packages/fe/c3/2854f40ecd19585d65afaef601e5e1f8dbf6758b2f95b5ea93d38655a2c6/scipy-1.15.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:08b57a9336b8e79b305a143c3655cc5bdbe6d5ece3378578888d2afbb51c4e37", size = 30100266, upload-time = "2025-02-17T00:32:59.318Z" }, + { url = "https://files.pythonhosted.org/packages/dd/b1/f9fe6e3c828cb5930b5fe74cb479de5f3d66d682fa8adb77249acaf545b8/scipy-1.15.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:54c462098484e7466362a9f1672d20888f724911a74c22ae35b61f9c5919183d", size = 22373768, upload-time = "2025-02-17T00:33:04.091Z" }, + { url = "https://files.pythonhosted.org/packages/15/9d/a60db8c795700414c3f681908a2b911e031e024d93214f2d23c6dae174ab/scipy-1.15.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:cf72ff559a53a6a6d77bd8eefd12a17995ffa44ad86c77a5df96f533d4e6c6bb", size = 25154719, upload-time = "2025-02-17T00:33:08.909Z" }, + { url = "https://files.pythonhosted.org/packages/37/3b/9bda92a85cd93f19f9ed90ade84aa1e51657e29988317fabdd44544f1dd4/scipy-1.15.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9de9d1416b3d9e7df9923ab23cd2fe714244af10b763975bea9e4f2e81cebd27", size = 35163195, upload-time = "2025-02-17T00:33:15.352Z" }, + { url = "https://files.pythonhosted.org/packages/03/5a/fc34bf1aa14dc7c0e701691fa8685f3faec80e57d816615e3625f28feb43/scipy-1.15.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb530e4794fc8ea76a4a21ccb67dea33e5e0e60f07fc38a49e821e1eae3b71a0", size = 37255404, upload-time = "2025-02-17T00:33:22.21Z" }, + { url = "https://files.pythonhosted.org/packages/4a/71/472eac45440cee134c8a180dbe4c01b3ec247e0338b7c759e6cd71f199a7/scipy-1.15.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5ea7ed46d437fc52350b028b1d44e002646e28f3e8ddc714011aaf87330f2f32", size = 36860011, upload-time = "2025-02-17T00:33:29.446Z" }, + { url = "https://files.pythonhosted.org/packages/01/b3/21f890f4f42daf20e4d3aaa18182dddb9192771cd47445aaae2e318f6738/scipy-1.15.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:11e7ad32cf184b74380f43d3c0a706f49358b904fa7d5345f16ddf993609184d", size = 39657406, upload-time = "2025-02-17T00:33:39.019Z" }, + { url = "https://files.pythonhosted.org/packages/0d/76/77cf2ac1f2a9cc00c073d49e1e16244e389dd88e2490c91d84e1e3e4d126/scipy-1.15.2-cp313-cp313-win_amd64.whl", hash = "sha256:a5080a79dfb9b78b768cebf3c9dcbc7b665c5875793569f48bf0e2b1d7f68f6f", size = 40961243, upload-time = "2025-02-17T00:34:51.024Z" }, + { url = "https://files.pythonhosted.org/packages/4c/4b/a57f8ddcf48e129e6054fa9899a2a86d1fc6b07a0e15c7eebff7ca94533f/scipy-1.15.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:447ce30cee6a9d5d1379087c9e474628dab3db4a67484be1b7dc3196bfb2fac9", size = 38870286, upload-time = "2025-02-17T00:33:47.62Z" }, + { url = "https://files.pythonhosted.org/packages/0c/43/c304d69a56c91ad5f188c0714f6a97b9c1fed93128c691148621274a3a68/scipy-1.15.2-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:c90ebe8aaa4397eaefa8455a8182b164a6cc1d59ad53f79943f266d99f68687f", size = 30141634, upload-time = "2025-02-17T00:33:54.131Z" }, + { url = "https://files.pythonhosted.org/packages/44/1a/6c21b45d2548eb73be9b9bff421aaaa7e85e22c1f9b3bc44b23485dfce0a/scipy-1.15.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:def751dd08243934c884a3221156d63e15234a3155cf25978b0a668409d45eb6", size = 22415179, upload-time = "2025-02-17T00:33:59.948Z" }, + { url = "https://files.pythonhosted.org/packages/74/4b/aefac4bba80ef815b64f55da06f62f92be5d03b467f2ce3668071799429a/scipy-1.15.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:302093e7dfb120e55515936cb55618ee0b895f8bcaf18ff81eca086c17bd80af", size = 25126412, upload-time = "2025-02-17T00:34:06.328Z" }, + { url = "https://files.pythonhosted.org/packages/b1/53/1cbb148e6e8f1660aacd9f0a9dfa2b05e9ff1cb54b4386fe868477972ac2/scipy-1.15.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7cd5b77413e1855351cdde594eca99c1f4a588c2d63711388b6a1f1c01f62274", size = 34952867, upload-time = "2025-02-17T00:34:12.928Z" }, + { url = "https://files.pythonhosted.org/packages/2c/23/e0eb7f31a9c13cf2dca083828b97992dd22f8184c6ce4fec5deec0c81fcf/scipy-1.15.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d0194c37037707b2afa7a2f2a924cf7bac3dc292d51b6a925e5fcb89bc5c776", size = 36890009, upload-time = "2025-02-17T00:34:19.55Z" }, + { url = "https://files.pythonhosted.org/packages/03/f3/e699e19cabe96bbac5189c04aaa970718f0105cff03d458dc5e2b6bd1e8c/scipy-1.15.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:bae43364d600fdc3ac327db99659dcb79e6e7ecd279a75fe1266669d9a652828", size = 36545159, upload-time = "2025-02-17T00:34:26.724Z" }, + { url = "https://files.pythonhosted.org/packages/af/f5/ab3838e56fe5cc22383d6fcf2336e48c8fe33e944b9037fbf6cbdf5a11f8/scipy-1.15.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f031846580d9acccd0044efd1a90e6f4df3a6e12b4b6bd694a7bc03a89892b28", size = 39136566, upload-time = "2025-02-17T00:34:34.512Z" }, + { url = "https://files.pythonhosted.org/packages/0a/c8/b3f566db71461cabd4b2d5b39bcc24a7e1c119535c8361f81426be39bb47/scipy-1.15.2-cp313-cp313t-win_amd64.whl", hash = "sha256:fe8a9eb875d430d81755472c5ba75e84acc980e4a8f6204d402849234d3017db", size = 40477705, upload-time = "2025-02-17T00:34:43.619Z" }, +] + +[[package]] +name = "setuptools" +version = "75.8.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d1/53/43d99d7687e8cdef5ab5f9ec5eaf2c0423c2b35133a2b7e7bc276fc32b21/setuptools-75.8.2.tar.gz", hash = "sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2", size = 1344083, upload-time = "2025-02-26T20:45:19.103Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/38/7d7362e031bd6dc121e5081d8cb6aa6f6fedf2b67bf889962134c6da4705/setuptools-75.8.2-py3-none-any.whl", hash = "sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f", size = 1229385, upload-time = "2025-02-26T20:45:17.259Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "soupsieve" +version = "2.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/ce/fbaeed4f9fb8b2daa961f90591662df6a86c1abf25c548329a86920aedfb/soupsieve-2.6.tar.gz", hash = "sha256:e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb", size = 101569, upload-time = "2024-08-13T13:39:12.166Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/c2/fe97d779f3ef3b15f05c94a2f1e3d21732574ed441687474db9d342a7315/soupsieve-2.6-py3-none-any.whl", hash = "sha256:e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9", size = 36186, upload-time = "2024-08-13T13:39:10.986Z" }, +] + +[[package]] +name = "statsmodels" +version = "0.14.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "packaging" }, + { name = "pandas" }, + { name = "patsy" }, + { name = "scipy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1f/3b/963a015dd8ea17e10c7b0e2f14d7c4daec903baf60a017e756b57953a4bf/statsmodels-0.14.4.tar.gz", hash = "sha256:5d69e0f39060dc72c067f9bb6e8033b6dccdb0bae101d76a7ef0bcc94e898b67", size = 20354802, upload-time = "2024-10-03T16:15:36.273Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/f8/2662e6a101315ad336f75168fa9bac71f913ebcb92a6be84031d84a0f21f/statsmodels-0.14.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b5a24f5d2c22852d807d2b42daf3a61740820b28d8381daaf59dcb7055bf1a79", size = 10186886, upload-time = "2024-10-03T17:10:44.074Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c0/ee6e8ed35fc1ca9c7538c592f4974547bf72274bc98db1ae4a6e87481a83/statsmodels-0.14.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:df4f7864606fa843d7e7c0e6af288f034a2160dba14e6ccc09020a3cf67cb092", size = 9880066, upload-time = "2024-10-03T17:10:56.972Z" }, + { url = "https://files.pythonhosted.org/packages/d1/97/3380ca6d8fd66cfb3d12941e472642f26e781a311c355a4e97aab2ed0216/statsmodels-0.14.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91341cbde9e8bea5fb419a76e09114e221567d03f34ca26e6d67ae2c27d8fe3c", size = 10283521, upload-time = "2024-10-03T17:14:06.216Z" }, + { url = "https://files.pythonhosted.org/packages/fe/2a/55c5b5c5e5124a202ea3fe0bcdbdeceaf91b4ec6164b8434acb9dd97409c/statsmodels-0.14.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1322286a7bfdde2790bf72d29698a1b76c20b8423a55bdcd0d457969d0041f72", size = 10723228, upload-time = "2024-10-03T17:14:19.587Z" }, + { url = "https://files.pythonhosted.org/packages/4f/76/67747e49dc758daae06f33aad8247b718cd7d224f091d2cd552681215bb2/statsmodels-0.14.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e31b95ac603415887c9f0d344cb523889cf779bc52d68e27e2d23c358958fec7", size = 10859503, upload-time = "2024-10-03T17:14:32.798Z" }, + { url = "https://files.pythonhosted.org/packages/1d/eb/cb8b01f5edf8f135eb3d0553d159db113a35b2948d0e51eeb735e7ae09ea/statsmodels-0.14.4-cp313-cp313-win_amd64.whl", hash = "sha256:81030108d27aecc7995cac05aa280cf8c6025f6a6119894eef648997936c2dd0", size = 9817574, upload-time = "2024-10-03T16:14:37.461Z" }, +] + +[[package]] +name = "stevedore" +version = "5.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pbr" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/28/3f/13cacea96900bbd31bb05c6b74135f85d15564fc583802be56976c940470/stevedore-5.4.1.tar.gz", hash = "sha256:3135b5ae50fe12816ef291baff420acb727fcd356106e3e9cbfa9e5985cd6f4b", size = 513858, upload-time = "2025-02-20T14:03:57.285Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/45/8c4ebc0c460e6ec38e62ab245ad3c7fc10b210116cea7c16d61602aa9558/stevedore-5.4.1-py3-none-any.whl", hash = "sha256:d10a31c7b86cba16c1f6e8d15416955fc797052351a56af15e608ad20811fcfe", size = 49533, upload-time = "2025-02-20T14:03:55.849Z" }, +] + +[[package]] +name = "symengine" +version = "0.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6b/ff/a2041497a482a0ae585672fe12cc8983c7fc46ce792811b55a067e5e5516/symengine-0.13.0.tar.gz", hash = "sha256:ab83a08897ebf12579702c2b71ba73d4732fb706cc4291d810aedf39c690c14c", size = 114237, upload-time = "2024-09-30T22:06:25.16Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f2/51/36ea8d87b61f34d585d09ff585cdc2ba136c501e0a96e861fe81fd0efa5b/symengine-0.13.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5d34df77971538e4c29f2d8e5ef7f459c2179465e6cdb7dfd48b79b87ecd8f4d", size = 25838153, upload-time = "2024-09-30T22:04:35.743Z" }, + { url = "https://files.pythonhosted.org/packages/2a/f7/73cd707633c01760df27d340ac2868788fa0a35034aa09f51f6a289d9a07/symengine-0.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ab2661d9b18867e7c6edbfa7a74b8b0a2a694bd24aa08003dc3214f77cb9d6f2", size = 22706111, upload-time = "2024-09-30T22:04:38.922Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e7/a1ddc4cc3f2604b18965342523cddd6160b6406d1ef21b58a2dea1c46312/symengine-0.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:53f27b9013878ee4419d8e853664d8ae4b68419e3f4b9b5b7f503d32bf904755", size = 60848269, upload-time = "2024-09-30T22:04:43.816Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f5/b127d236a8ccce8b85cec8bcb0221cbb6a4e651d6f5511da925e10714a4c/symengine-0.13.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:27987f75ce08c64f453e2b9b74fec6ffc5ca418c4deca0b75580979d4a4e242a", size = 89679345, upload-time = "2024-09-30T22:04:50.53Z" }, + { url = "https://files.pythonhosted.org/packages/49/d0/b07c71dfb6f7f47f90495d67cb0b2264f94f2fb9380e528fe4fcec4c5cfa/symengine-0.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e9ea9410330ea15ed4137d7a0a3c43caccacb71490e18036ce5182d08c93baf8", size = 49582795, upload-time = "2024-09-30T22:04:56.705Z" }, + { url = "https://files.pythonhosted.org/packages/de/c6/3ce562ec269b033a738b99aa75729d564bfe465a765a5b5810200924f5c9/symengine-0.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:5031eb7a5c6675d5195bb57f93cc7d9ac5a7a9a826d4ad6f6b2927746ed7e6e6", size = 17786679, upload-time = "2024-09-30T22:05:30.754Z" }, + { url = "https://files.pythonhosted.org/packages/ca/0f/02031b4ed54fb088ade94082e4658160333c2d5c6629ca7e567ea5a23720/symengine-0.13.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:ce0e5dfb19943bcf3e44a4485bcac4c5533ba3705c63083494eed0b3bf246076", size = 25795209, upload-time = "2024-09-30T22:05:05.713Z" }, + { url = "https://files.pythonhosted.org/packages/34/c0/03e9e34a4e2af73dd786fb966ee3ad7ffa57659e79e4ac390be9e9f6aded/symengine-0.13.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:c3b77dc54bf1181f6bd3b3338c4e6e5973a8b0fa20a189d15563ef5626e57b04", size = 22670484, upload-time = "2024-09-30T22:05:08.721Z" }, + { url = "https://files.pythonhosted.org/packages/9d/13/66c8510403089ee157f0a8930a2e043e6f4de9ee514c8084adb958934058/symengine-0.13.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca7c3f6c168f6f5b06b421833c3d3baae56067a94b671bdffbe09b8e4fefd9be", size = 60739889, upload-time = "2024-09-30T22:05:13.331Z" }, + { url = "https://files.pythonhosted.org/packages/70/fe/d0c778204d855257865e713fcbfef11dde34621e07fee439d4d117f43203/symengine-0.13.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:847523de682416811bacb3ad11507e663b3522fbb35cd27184757e9956d0eaf0", size = 89405899, upload-time = "2024-09-30T22:05:20.504Z" }, + { url = "https://files.pythonhosted.org/packages/66/f6/f546e527caf35b7d0f14dbcea278134d4e46d7431821b9ca9f5ec3388a6a/symengine-0.13.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec2fc1b7d96426463f0c9011e9fb88459d906477c1baa8a996dde6fb2bfa99d4", size = 49474632, upload-time = "2024-09-30T22:05:26.083Z" }, +] + +[[package]] +name = "sympy" +version = "1.13.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mpmath" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/11/8a/5a7fd6284fa8caac23a26c9ddf9c30485a48169344b4bd3b0f02fef1890f/sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9", size = 7533196, upload-time = "2024-09-18T21:54:25.591Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/ff/c87e0622b1dadea79d2fb0b25ade9ed98954c9033722eb707053d310d4f3/sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73", size = 6189483, upload-time = "2024-09-18T21:54:23.097Z" }, +] + +[[package]] +name = "tensorboard" +version = "2.20.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "absl-py" }, + { name = "grpcio" }, + { name = "markdown" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "protobuf" }, + { name = "setuptools" }, + { name = "tensorboard-data-server" }, + { name = "werkzeug" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/9c/d9/a5db55f88f258ac669a92858b70a714bbbd5acd993820b41ec4a96a4d77f/tensorboard-2.20.0-py3-none-any.whl", hash = "sha256:9dc9f978cb84c0723acf9a345d96c184f0293d18f166bb8d59ee098e6cfaaba6", size = 5525680, upload-time = "2025-07-17T19:20:49.638Z" }, +] + +[[package]] +name = "tensorboard-data-server" +version = "0.7.2" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7a/13/e503968fefabd4c6b2650af21e110aa8466fe21432cd7c43a84577a89438/tensorboard_data_server-0.7.2-py3-none-any.whl", hash = "sha256:7e0610d205889588983836ec05dc098e80f97b7e7bbff7e994ebb78f578d0ddb", size = 2356, upload-time = "2023-10-23T21:23:32.16Z" }, + { url = "https://files.pythonhosted.org/packages/b7/85/dabeaf902892922777492e1d253bb7e1264cadce3cea932f7ff599e53fea/tensorboard_data_server-0.7.2-py3-none-macosx_10_9_x86_64.whl", hash = "sha256:9fe5d24221b29625dbc7328b0436ca7fc1c23de4acf4d272f1180856e32f9f60", size = 4823598, upload-time = "2023-10-23T21:23:33.714Z" }, + { url = "https://files.pythonhosted.org/packages/73/c6/825dab04195756cf8ff2e12698f22513b3db2f64925bdd41671bfb33aaa5/tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl", hash = "sha256:ef687163c24185ae9754ed5650eb5bc4d84ff257aabdc33f0cc6f74d8ba54530", size = 6590363, upload-time = "2023-10-23T21:23:35.583Z" }, +] + +[[package]] +name = "tensorflow" +version = "2.20.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "absl-py" }, + { name = "astunparse" }, + { name = "flatbuffers" }, + { name = "gast" }, + { name = "google-pasta" }, + { name = "grpcio" }, + { name = "h5py" }, + { name = "keras" }, + { name = "libclang" }, + { name = "ml-dtypes" }, + { name = "numpy" }, + { name = "opt-einsum" }, + { name = "packaging" }, + { name = "protobuf" }, + { name = "requests" }, + { name = "setuptools" }, + { name = "six" }, + { name = "tensorboard" }, + { name = "termcolor" }, + { name = "typing-extensions" }, + { name = "wrapt" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/82/af283f402f8d1e9315644a331a5f0f326264c5d1de08262f3de5a5ade422/tensorflow-2.20.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:197f0b613b38c0da5c6a12a8295ad4a05c78b853835dae8e0f9dfae3ce9ce8a5", size = 200671458, upload-time = "2025-08-13T16:53:16.568Z" }, + { url = "https://files.pythonhosted.org/packages/ea/4c/c1aa90c5cc92e9f7f9c78421e121ef25bae7d378f8d1d4cbad46c6308836/tensorflow-2.20.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:47c88e05a07f1ead4977b4894b3ecd4d8075c40191065afc4fd9355c9db3d926", size = 259663776, upload-time = "2025-08-13T16:53:24.507Z" }, + { url = "https://files.pythonhosted.org/packages/43/fb/8be8547c128613d82a2b006004026d86ed0bd672e913029a98153af4ffab/tensorflow-2.20.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fa3729b0126f75a99882b89fb7d536515721eda8014a63e259e780ba0a37372", size = 620815537, upload-time = "2025-08-13T16:53:42.577Z" }, + { url = "https://files.pythonhosted.org/packages/9b/9e/02e201033f8d6bd5f79240b7262337de44c51a6cfd85c23a86c103c7684d/tensorflow-2.20.0-cp313-cp313-win_amd64.whl", hash = "sha256:c25edad45e8cb9e76366f7a8c835279f9169028d610f3b52ce92d332a1b05438", size = 332012220, upload-time = "2025-08-13T16:53:57.303Z" }, +] + +[[package]] +name = "termcolor" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/37/72/88311445fd44c455c7d553e61f95412cf89054308a1aa2434ab835075fc5/termcolor-2.5.0.tar.gz", hash = "sha256:998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f", size = 13057, upload-time = "2024-10-06T19:50:04.115Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/be/df630c387a0a054815d60be6a97eb4e8f17385d5d6fe660e1c02750062b4/termcolor-2.5.0-py3-none-any.whl", hash = "sha256:37b17b5fc1e604945c2642c872a3764b5d547a48009871aea3edd3afa180afb8", size = 7755, upload-time = "2024-10-06T19:50:02.097Z" }, +] + +[[package]] +name = "threadpoolctl" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bd/55/b5148dcbf72f5cde221f8bfe3b6a540da7aa1842f6b491ad979a6c8b84af/threadpoolctl-3.5.0.tar.gz", hash = "sha256:082433502dd922bf738de0d8bcc4fdcbf0979ff44c42bd40f5af8a282f6fa107", size = 41936, upload-time = "2024-04-29T13:50:16.544Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4b/2c/ffbf7a134b9ab11a67b0cf0726453cedd9c5043a4fe7a35d1cefa9a1bcfb/threadpoolctl-3.5.0-py3-none-any.whl", hash = "sha256:56c1e26c150397e58c4926da8eeee87533b1e32bef131bd4bf6a2f45f3185467", size = 18414, upload-time = "2024-04-29T13:50:14.014Z" }, +] + +[[package]] +name = "types-requests" +version = "2.32.0.20250301" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/87/88/365d6b46f1088ddeccbc89c26190c3180088ef6e7c8d162fc619496aab96/types_requests-2.32.0.20250301.tar.gz", hash = "sha256:3d909dc4eaab159c0d964ebe8bfa326a7afb4578d8706408d417e17d61b0c500", size = 22977, upload-time = "2025-03-01T02:51:59.759Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b9/c2/e44564e8995dbc1738c2acacb8009d59c8cb19327da95a1b5c5d9cb68364/types_requests-2.32.0.20250301-py3-none-any.whl", hash = "sha256:0003e0124e2cbefefb88222ff822b48616af40c74df83350f599a650c8de483b", size = 20671, upload-time = "2025-03-01T02:51:58.246Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.12.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321, upload-time = "2024-06-07T18:52:15.995Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438, upload-time = "2024-06-07T18:52:13.582Z" }, +] + +[[package]] +name = "tzdata" +version = "2025.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/0f/fa4723f22942480be4ca9527bbde8d43f6c3f2fe8412f00e7f5f6746bc8b/tzdata-2025.1.tar.gz", hash = "sha256:24894909e88cdb28bd1636c6887801df64cb485bd593f2fd83ef29075a81d694", size = 194950, upload-time = "2025-01-21T19:49:38.686Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0f/dd/84f10e23edd882c6f968c21c2434fe67bd4a528967067515feca9e611e5e/tzdata-2025.1-py2.py3-none-any.whl", hash = "sha256:7e127113816800496f027041c570f50bcd464a020098a3b6b199517772303639", size = 346762, upload-time = "2025-01-21T19:49:37.187Z" }, +] + +[[package]] +name = "urllib3" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d", size = 307268, upload-time = "2024-12-22T07:47:30.032Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df", size = 128369, upload-time = "2024-12-22T07:47:28.074Z" }, +] + +[[package]] +name = "virtualenv" +version = "20.29.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "distlib" }, + { name = "filelock" }, + { name = "platformdirs" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f1/88/dacc875dd54a8acadb4bcbfd4e3e86df8be75527116c91d8f9784f5e9cab/virtualenv-20.29.2.tar.gz", hash = "sha256:fdaabebf6d03b5ba83ae0a02cfe96f48a716f4fae556461d180825866f75b728", size = 4320272, upload-time = "2025-02-10T19:03:53.117Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/93/fa/849483d56773ae29740ae70043ad88e068f98a6401aa819b5d6bee604683/virtualenv-20.29.2-py3-none-any.whl", hash = "sha256:febddfc3d1ea571bdb1dc0f98d7b45d24def7428214d4fb73cc486c9568cce6a", size = 4301478, upload-time = "2025-02-10T19:03:48.221Z" }, +] + +[[package]] +name = "werkzeug" +version = "3.1.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markupsafe" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9f/69/83029f1f6300c5fb2471d621ab06f6ec6b3324685a2ce0f9777fd4a8b71e/werkzeug-3.1.3.tar.gz", hash = "sha256:60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746", size = 806925, upload-time = "2024-11-08T15:52:18.093Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/52/24/ab44c871b0f07f491e5d2ad12c9bd7358e527510618cb1b803a88e986db1/werkzeug-3.1.3-py3-none-any.whl", hash = "sha256:54b78bf3716d19a65be4fceccc0d1d7b89e608834989dfae50ea87564639213e", size = 224498, upload-time = "2024-11-08T15:52:16.132Z" }, +] + +[[package]] +name = "wheel" +version = "0.45.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8a/98/2d9906746cdc6a6ef809ae6338005b3f21bb568bea3165cfc6a243fdc25c/wheel-0.45.1.tar.gz", hash = "sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729", size = 107545, upload-time = "2024-11-23T00:18:23.513Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl", hash = "sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248", size = 72494, upload-time = "2024-11-23T00:18:21.207Z" }, +] + +[[package]] +name = "wrapt" +version = "1.17.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c3/fc/e91cc220803d7bc4db93fb02facd8461c37364151b8494762cc88b0fbcef/wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3", size = 55531, upload-time = "2025-01-14T10:35:45.465Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/b9/0ffd557a92f3b11d4c5d5e0c5e4ad057bd9eb8586615cdaf901409920b14/wrapt-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6ed6ffac43aecfe6d86ec5b74b06a5be33d5bb9243d055141e8cabb12aa08125", size = 53800, upload-time = "2025-01-14T10:34:21.571Z" }, + { url = "https://files.pythonhosted.org/packages/c0/ef/8be90a0b7e73c32e550c73cfb2fa09db62234227ece47b0e80a05073b375/wrapt-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35621ae4c00e056adb0009f8e86e28eb4a41a4bfa8f9bfa9fca7d343fe94f998", size = 38824, upload-time = "2025-01-14T10:34:22.999Z" }, + { url = "https://files.pythonhosted.org/packages/36/89/0aae34c10fe524cce30fe5fc433210376bce94cf74d05b0d68344c8ba46e/wrapt-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a604bf7a053f8362d27eb9fefd2097f82600b856d5abe996d623babd067b1ab5", size = 38920, upload-time = "2025-01-14T10:34:25.386Z" }, + { url = "https://files.pythonhosted.org/packages/3b/24/11c4510de906d77e0cfb5197f1b1445d4fec42c9a39ea853d482698ac681/wrapt-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cbabee4f083b6b4cd282f5b817a867cf0b1028c54d445b7ec7cfe6505057cf8", size = 88690, upload-time = "2025-01-14T10:34:28.058Z" }, + { url = "https://files.pythonhosted.org/packages/71/d7/cfcf842291267bf455b3e266c0c29dcb675b5540ee8b50ba1699abf3af45/wrapt-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49703ce2ddc220df165bd2962f8e03b84c89fee2d65e1c24a7defff6f988f4d6", size = 80861, upload-time = "2025-01-14T10:34:29.167Z" }, + { url = "https://files.pythonhosted.org/packages/d5/66/5d973e9f3e7370fd686fb47a9af3319418ed925c27d72ce16b791231576d/wrapt-1.17.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8112e52c5822fc4253f3901b676c55ddf288614dc7011634e2719718eaa187dc", size = 89174, upload-time = "2025-01-14T10:34:31.702Z" }, + { url = "https://files.pythonhosted.org/packages/a7/d3/8e17bb70f6ae25dabc1aaf990f86824e4fd98ee9cadf197054e068500d27/wrapt-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9fee687dce376205d9a494e9c121e27183b2a3df18037f89d69bd7b35bcf59e2", size = 86721, upload-time = "2025-01-14T10:34:32.91Z" }, + { url = "https://files.pythonhosted.org/packages/6f/54/f170dfb278fe1c30d0ff864513cff526d624ab8de3254b20abb9cffedc24/wrapt-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:18983c537e04d11cf027fbb60a1e8dfd5190e2b60cc27bc0808e653e7b218d1b", size = 79763, upload-time = "2025-01-14T10:34:34.903Z" }, + { url = "https://files.pythonhosted.org/packages/4a/98/de07243751f1c4a9b15c76019250210dd3486ce098c3d80d5f729cba029c/wrapt-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:703919b1633412ab54bcf920ab388735832fdcb9f9a00ae49387f0fe67dad504", size = 87585, upload-time = "2025-01-14T10:34:36.13Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f0/13925f4bd6548013038cdeb11ee2cbd4e37c30f8bfd5db9e5a2a370d6e20/wrapt-1.17.2-cp313-cp313-win32.whl", hash = "sha256:abbb9e76177c35d4e8568e58650aa6926040d6a9f6f03435b7a522bf1c487f9a", size = 36676, upload-time = "2025-01-14T10:34:37.962Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ae/743f16ef8c2e3628df3ddfd652b7d4c555d12c84b53f3d8218498f4ade9b/wrapt-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:69606d7bb691b50a4240ce6b22ebb319c1cfb164e5f6569835058196e0f3a845", size = 38871, upload-time = "2025-01-14T10:34:39.13Z" }, + { url = "https://files.pythonhosted.org/packages/3d/bc/30f903f891a82d402ffb5fda27ec1d621cc97cb74c16fea0b6141f1d4e87/wrapt-1.17.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:4a721d3c943dae44f8e243b380cb645a709ba5bd35d3ad27bc2ed947e9c68192", size = 56312, upload-time = "2025-01-14T10:34:40.604Z" }, + { url = "https://files.pythonhosted.org/packages/8a/04/c97273eb491b5f1c918857cd26f314b74fc9b29224521f5b83f872253725/wrapt-1.17.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:766d8bbefcb9e00c3ac3b000d9acc51f1b399513f44d77dfe0eb026ad7c9a19b", size = 40062, upload-time = "2025-01-14T10:34:45.011Z" }, + { url = "https://files.pythonhosted.org/packages/4e/ca/3b7afa1eae3a9e7fefe499db9b96813f41828b9fdb016ee836c4c379dadb/wrapt-1.17.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e496a8ce2c256da1eb98bd15803a79bee00fc351f5dfb9ea82594a3f058309e0", size = 40155, upload-time = "2025-01-14T10:34:47.25Z" }, + { url = "https://files.pythonhosted.org/packages/89/be/7c1baed43290775cb9030c774bc53c860db140397047cc49aedaf0a15477/wrapt-1.17.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d615e4fe22f4ad3528448c193b218e077656ca9ccb22ce2cb20db730f8d306", size = 113471, upload-time = "2025-01-14T10:34:50.934Z" }, + { url = "https://files.pythonhosted.org/packages/32/98/4ed894cf012b6d6aae5f5cc974006bdeb92f0241775addad3f8cd6ab71c8/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5aaeff38654462bc4b09023918b7f21790efb807f54c000a39d41d69cf552cb", size = 101208, upload-time = "2025-01-14T10:34:52.297Z" }, + { url = "https://files.pythonhosted.org/packages/ea/fd/0c30f2301ca94e655e5e057012e83284ce8c545df7661a78d8bfca2fac7a/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7d15bbd2bc99e92e39f49a04653062ee6085c0e18b3b7512a4f2fe91f2d681", size = 109339, upload-time = "2025-01-14T10:34:53.489Z" }, + { url = "https://files.pythonhosted.org/packages/75/56/05d000de894c4cfcb84bcd6b1df6214297b8089a7bd324c21a4765e49b14/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e3890b508a23299083e065f435a492b5435eba6e304a7114d2f919d400888cc6", size = 110232, upload-time = "2025-01-14T10:34:55.327Z" }, + { url = "https://files.pythonhosted.org/packages/53/f8/c3f6b2cf9b9277fb0813418e1503e68414cd036b3b099c823379c9575e6d/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8c8b293cd65ad716d13d8dd3624e42e5a19cc2a2f1acc74b30c2c13f15cb61a6", size = 100476, upload-time = "2025-01-14T10:34:58.055Z" }, + { url = "https://files.pythonhosted.org/packages/a7/b1/0bb11e29aa5139d90b770ebbfa167267b1fc548d2302c30c8f7572851738/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c82b8785d98cdd9fed4cac84d765d234ed3251bd6afe34cb7ac523cb93e8b4f", size = 106377, upload-time = "2025-01-14T10:34:59.3Z" }, + { url = "https://files.pythonhosted.org/packages/6a/e1/0122853035b40b3f333bbb25f1939fc1045e21dd518f7f0922b60c156f7c/wrapt-1.17.2-cp313-cp313t-win32.whl", hash = "sha256:13e6afb7fe71fe7485a4550a8844cc9ffbe263c0f1a1eea569bc7091d4898555", size = 37986, upload-time = "2025-01-14T10:35:00.498Z" }, + { url = "https://files.pythonhosted.org/packages/09/5e/1655cf481e079c1f22d0cabdd4e51733679932718dc23bf2db175f329b76/wrapt-1.17.2-cp313-cp313t-win_amd64.whl", hash = "sha256:eaf675418ed6b3b31c7a989fd007fa7c3be66ce14e5c3b27336383604c9da85c", size = 40750, upload-time = "2025-01-14T10:35:03.378Z" }, + { url = "https://files.pythonhosted.org/packages/2d/82/f56956041adef78f849db6b289b282e72b55ab8045a75abad81898c28d19/wrapt-1.17.2-py3-none-any.whl", hash = "sha256:b18f2d1533a71f069c7f82d524a52599053d4c7166e9dd374ae2136b7f40f7c8", size = 23594, upload-time = "2025-01-14T10:35:44.018Z" }, +] + +[[package]] +name = "xgboost" +version = "2.1.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, + { name = "nvidia-nccl-cu12", marker = "platform_machine != 'aarch64' and sys_platform == 'linux'" }, + { name = "scipy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e2/5e/860a1ef13ce38db8c257c83e138be64bcffde8f401e84bf1e2e91838afa3/xgboost-2.1.4.tar.gz", hash = "sha256:ab84c4bbedd7fae1a26f61e9dd7897421d5b08454b51c6eb072abc1d346d08d7", size = 1091127, upload-time = "2025-02-06T18:18:20.192Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/fe/7a1d2342c2e93f22b41515e02b73504c7809247b16ae395bd2ee7ef11e19/xgboost-2.1.4-py3-none-macosx_10_15_x86_64.macosx_11_0_x86_64.macosx_12_0_x86_64.whl", hash = "sha256:78d88da184562deff25c820d943420342014dd55e0f4c017cc4563c2148df5ee", size = 2140692, upload-time = "2025-02-06T18:16:59.23Z" }, + { url = "https://files.pythonhosted.org/packages/f5/b6/653a70910739f127adffbefb688ebc22b51139292757de7c22b1e04ce792/xgboost-2.1.4-py3-none-macosx_12_0_arm64.whl", hash = "sha256:523db01d4e74b05c61a985028bde88a4dd380eadc97209310621996d7d5d14a7", size = 1939418, upload-time = "2025-02-06T18:17:02.494Z" }, + { url = "https://files.pythonhosted.org/packages/43/06/905fee34c10fb0d0c3baa15106413b76f360d8e958765ec57c9eddf762fa/xgboost-2.1.4-py3-none-manylinux2014_aarch64.whl", hash = "sha256:57c7e98111aceef4b689d7d2ce738564a1f7fe44237136837a47847b8b33bade", size = 4442052, upload-time = "2025-02-06T18:17:04.029Z" }, + { url = "https://files.pythonhosted.org/packages/f8/6a/41956f91ab984f2fa44529b2551d825a20d33807eba051a60d06ede2a87c/xgboost-2.1.4-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f1343a512e634822eab30d300bfc00bf777dc869d881cc74854b42173cfcdb14", size = 4533170, upload-time = "2025-02-06T18:17:05.753Z" }, + { url = "https://files.pythonhosted.org/packages/b1/53/37032dca20dae7a88ad1907f817a81f232ca6e935f0c28c98db3c0a0bd22/xgboost-2.1.4-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:d366097d0db047315736f46af852feaa907f6d7371716af741cdce488ae36d20", size = 4206715, upload-time = "2025-02-06T18:17:08.448Z" }, + { url = "https://files.pythonhosted.org/packages/e4/3c/e3a93bfa7e8693c825df5ec02a40f7ff5f0950e02198b1e85da9315a8d47/xgboost-2.1.4-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:8df6da72963969ab2bf49a520c3e147b1e15cbeddd3aa0e3e039b3532c739339", size = 223642416, upload-time = "2025-02-06T18:17:25.08Z" }, + { url = "https://files.pythonhosted.org/packages/43/80/0b5a2dfcf5b4da27b0b68d2833f05d77e1a374d43db951fca200a1f12a52/xgboost-2.1.4-py3-none-win_amd64.whl", hash = "sha256:8bbfe4fedc151b83a52edbf0de945fd94358b09a81998f2945ad330fd5f20cd6", size = 124910381, upload-time = "2025-02-06T18:17:43.202Z" }, +] diff --git a/web_programming/emisi_co2.py b/web_programming/emisi_co2.py index ae42501c..be7c9413 100644 --- a/web_programming/emisi_co2.py +++ b/web_programming/emisi_co2.py @@ -22,4 +22,4 @@ def emisi(start, end) -> list: if __name__ == "__main__": for entry in emisi(start=date(2020, 10, 1), end=date(2020, 10, 3)): print("dari {from} ke {to}: {intensity[actual]}".format(**entry)) - print(f"{emisi_stngh_jam() = }") + print(f"{emisi_stngh_jam()}")