Skip to main content

Core classes for scheduling problems' definition

Project description

schore

schore is a lightweight Python library providing core classes for scheduling problems.

  • Parameter management: Transform tabular or textual input into structured parameters for scheduling problems.
  • Schedule management: Abstract base classes for defining and managing schedule data.

โœจ Modules

Data Management

from schore.data import DfManager, Table2DManager
  • DfManager: Base class for managing a DataFrame.
  • Table2DManager: Manages a 2D table represented as a DataFrame.

Parameter Management

from schore.parameters import JobStageProcessingTimeManager, JobMachineProcessingTimeManager
  • JobStageProcessingTimeManager: Manages a 2D DataFrame with stages as columns and jobs as rows.
  • JobMachineProcessingTimeManager: Manages a 2D DataFrame with machines as columns and jobs as rows.

Schedule Management

from schore.schedule.abstract import Activity, Resource, ResourceGroup, ParallelResourceGroup
  • Activity: Represents a scheduled operation (in shop environments) or a job (in single/parallel machine environments).
  • Resource: Represents a single resource (e.g., machine or worker).
  • ResourceGroup: Manages a group of resources collectively.
  • ParallelResourceGroup: Manages a group of resources that can operate in parallel.

These abstract base classes help you define, extend, and manage schedule-related data structures for various scheduling problems.

Utility

from schore.util import TextDataParser
  • TextDataParser: Parses text data from a stream.

Examples

from schore.parameters_examples.parallel_shop.identical_flow import HybridFlowshopParameters
  • HybridFlowshopParameters: Parameter class for a hybrid flowshop with identical parallel machines at each stage.

๐Ÿ› ๏ธ Repository Structure

โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ schore/
โ”‚       โ”œโ”€โ”€ data/
โ”‚       โ”‚   โ”œโ”€โ”€ df_manager.py
โ”‚       โ”‚   โ””โ”€โ”€ table_2d_manager.py
โ”‚       โ”œโ”€โ”€ parameters/
โ”‚       โ”‚   โ””โ”€โ”€ processing_time/
โ”‚       โ”‚       โ”œโ”€โ”€ job_mc_p.py
โ”‚       โ”‚       โ””โ”€โ”€ job_stage_p.py
โ”‚       โ”œโ”€โ”€ parameters_examples/
โ”‚       โ”‚   โ”œโ”€โ”€ parallel/
โ”‚       โ”‚   โ”œโ”€โ”€ parallel_shop/
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ identical_flow/
โ”‚       โ”‚   โ”‚       โ””โ”€โ”€ hybrid_flowshop.py
โ”‚       โ”‚   โ”œโ”€โ”€ shop/
โ”‚       โ”‚   โ””โ”€โ”€ single/
โ”‚       โ”œโ”€โ”€ schedule/
โ”‚       โ”‚   โ””โ”€โ”€ abstract/
โ”‚       โ”‚       โ”œโ”€โ”€ activity.py
โ”‚       โ”‚       โ”œโ”€โ”€ resource.py
โ”‚       โ”‚       โ”œโ”€โ”€ resource_group.py
โ”‚       โ”‚       โ””โ”€โ”€ parallel_resource_group.py
โ”‚       โ”œโ”€โ”€ schedule_examples/
โ”‚       โ”‚   โ”œโ”€โ”€ machine.py
โ”‚       โ”‚   โ”œโ”€โ”€ parallel/
โ”‚       โ”‚   โ”œโ”€โ”€ parallel_shop/
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ identical_flow/
โ”‚       โ”‚   โ”‚       โ”œโ”€โ”€ hybrid_flowshop_operation.py
โ”‚       โ”‚   โ”‚       โ”œโ”€โ”€ hybrid_flowshop_machine.py
โ”‚       โ”‚   โ”‚       โ”œโ”€โ”€ hybrid_flowshop_stage.py
โ”‚       โ”‚   โ”‚       โ””โ”€โ”€ hybrid_flowshop_schedule.py
โ”‚       โ”‚   โ”œโ”€โ”€ shop/
โ”‚       โ”‚   โ””โ”€โ”€ single/
โ”‚       โ”œโ”€โ”€ util/
โ”‚       โ”‚   โ””โ”€โ”€ text_data_parser.py
โ”‚       โ”œโ”€โ”€ type_aliases.py
โ”‚       โ””โ”€โ”€ type_defs.py
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ data/
โ”‚   โ”‚   โ”œโ”€โ”€ test_df_manager.py
โ”‚   โ”‚   โ””โ”€โ”€ test_table_2d_manager.py
โ”‚   โ”œโ”€โ”€ examples/
โ”‚   โ”‚   โ””โ”€โ”€ parallel_shop/
โ”‚   โ”‚       โ””โ”€โ”€ test_hybrid_flowshop.py
โ”‚   โ”œโ”€โ”€ manager/
โ”‚   โ”‚   โ””โ”€โ”€ test_job_stage_processing_time_manager.py
โ”‚   โ””โ”€โ”€ util/
โ”‚       โ””โ”€โ”€ test_text_data_parser.py

๐Ÿงช Testing

To run the tests, use the following command:

pytest tests/

Installation

pip:

pip install schore

If you use uv as your Python package manager:

uv add schore

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

schore-0.0.4.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

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

schore-0.0.4-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file schore-0.0.4.tar.gz.

File metadata

  • Download URL: schore-0.0.4.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for schore-0.0.4.tar.gz
Algorithm Hash digest
SHA256 86d17c6fb79ae28ff061d57d40693b3b1325def7d43d6d855c2e7428aff032d5
MD5 c04569e993a8c5721776099aad4a2c0f
BLAKE2b-256 88579e2483628a62e81158b156cf130847a0e8f0a375c7ad384cd1609ba4e0dd

See more details on using hashes here.

File details

Details for the file schore-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: schore-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for schore-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a91dc8dfc3077ebe0977205e3d809aa83d2a31032c8072fc4cc7160ae4dd28c1
MD5 79fe757b566b10ae8462f98262345b16
BLAKE2b-256 33ea31a607cca9b575ef8cfaa121dd682a2d4035acd466f9df2b77fdfabcf220

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page