Mango Genetic
A Python library for implementing genetic algorithms and evolutionary computation methods.
Overview
Mango Genetic provides a comprehensive framework for building and running genetic algorithms. It includes implementations of various genetic operators such as selection, crossover, mutation, and replacement strategies.
Features
Individual Management - Base classes for representing individuals with different encoding types (real, binary, integer, categorical)
Population Control - Population management with configurable size and generation limits
Selection Methods - Multiple selection strategies including roulette wheel, tournament, rank-based, and elitism
Crossover Operators - Various crossover methods like blend, one-split, two-split, linear, flat, gaussian, and mask
Mutation Control - Configurable mutation rates with static, adaptive, gene-based, and population-based approaches
Replacement Strategies - Different replacement methods including elitist, stochastic elitist, random, and offspring-only
Configuration System - Flexible configuration management for all genetic algorithm parameters
Installation
Using uv:
uv add mango-genetic
Using pip:
pip install mango-genetic
Dependencies
Python >= 3.11
numpy >= 1.24.4
mango[data] == 1.0.2
Quick Start
from mango_genetic.config import GeneticBaseConfig
from mango_genetic.individual import Individual
from mango_genetic.population import Population
# Load configuration
config = GeneticBaseConfig("config.cfg")
# Create population and run genetic algorithm
population = Population(config, fitness_function)
population.run()
Documentation
For detailed documentation, visit the Mango Documentation.
License
This project is licensed under the Apache Software License.
Support
For questions, issues, or contributions, please contact:
Email: mango@baobabsoluciones.es
Create an issue on the repository
—
Made with ❤️ by baobab soluciones
Metadata
Release files for mango-genetic 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mango_genetic-1.0.3.tar.gz | 60.0 kB | Without provenance | Details for mango_genetic-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mango_genetic-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for mango_genetic-1.0.3-py3-none-any.whl |
Total release size: 88.0 kB
Release files / mango_genetic-1.0.3.tar.gz
| Download URL | mango_genetic-1.0.3.tar.gz |
|---|---|
| Size | 60.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35d8b191825b335b1ba5829675787aa4f7d31ac47f9dede4ddced393b86345ea
|
|
BLAKE2b-256 checksum How to use checksums |
57c6c5a7a242059fd0b4e9d7cfa29b253a177a6c409672744850e749a8fbc326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mango_genetic-1.0.3-py3-none-any.whl
| Download URL | mango_genetic-1.0.3-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4bdc5b3b5de1b06ccc44dd110ab57148db1ddacca135e614e5aa8336431a06e
|
|
BLAKE2b-256 checksum How to use checksums |
d875fa78de0760982b783d86a2436915073b7f81369ebea9fcf7dd6789462f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mango-genetic 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.