entities

raw

A dictionary indexed with all of the valid entity names. The dict contains all entities, regardless of type, which provides a convenient place to query data about any entity.

import json
from draftsman.data import entities

print(json.dumps(entities.raw["small-electric-pole"], indent=4))
# Note: not all key-value pairs are represented for brevity
{
    "fast_replaceable_group": "electric-pole",
    "collision_box": [
        [
            -0.15,
            -0.15
        ],
        [
            0.15,
            0.15
        ]
    ],
    "name": "small-electric-pole",
    "flags": [
        "placeable-neutral",
        "player-creation",
        "fast-replaceable-no-build-while-moving"
    ],
    "type": "electric-pole",
    "dying_explosion": "small-electric-pole-explosion",
    "minable": {
        "result": "small-electric-pole",
        "mining_time": 0.1
    },
    "icon_size": 64,
    "selection_box": [
        [
            -0.4,
            -0.4
        ],
        [
            0.4,
            0.4
        ]
    ],
    "track_coverage_during_build_by_moving": true,
    "corpse": "small-electric-pole-remnants",
    "connection_points": [...],
    "icon": "__base__/graphics/icons/small-electric-pole.png",
    "supply_area_distance": 2.5,
    "maximum_wire_distance": 7.5,
    "max_health": 100,
    "order": "a[energy]-a[small-electric-pole]",
    "subgroup": "energy-pipe-distribution"
    # and so on
    # ...
}

containers

A sorted list of all instances of Container.

storage_tanks

A sorted list of all instances of StorageTank.

transport_belts

A sorted list of all instances of TransportBelt.

underground_belts

A sorted list of all instances of UndergroundBelt.

splitters

A sorted list of all instances of Splitter.

inserters

A sorted list of all instances of Inserter.

filter_inserters

A sorted list of all instances of FilterInserter.

loaders

A sorted list of all instances of Loader.

electric_poles

A sorted list of all instances of ElectricPole.

pipes

A sorted list of all instances of Pipe.

underground_pipes

A sorted list of all instances of UndergroundPipe.

pumps

A sorted list of all instances of Pump.

straight_rails

A sorted list of all instances of StraightRail.

curved_rails

A sorted list of all instances of CurvedRail.

train_stops

A sorted list of all instances of TrainStop.

rail_signals

A sorted list of all instances of RailSignal.

rail_chain_signals

A sorted list of all instances of RailChainSignal.

locomotives

A sorted list of all instances of Locomotive.

cargo_wagons

A sorted list of all instances of CargoWagon.

fluid_wagons

A sorted list of all instances of FluidWagon.

artillery_wagons

A sorted list of all instances of ArtilleryWagon.

logistic_passive_containers

A sorted list of all instances of LogisticPassiveContainer.

logistic_active_containers

A sorted list of all instances of LogisticActiveContainer.

logistic_storage_containers

A sorted list of all instances of LogisticStorageContainer.

logistic_buffer_containers

A sorted list of all instances of LogisticBufferContainer.

logistic_request_containers

A sorted list of all instances of LogisticRequestContainer.

roboports

A sorted list of all instances of Roboports.

lamps

A sorted list of all instances of Lamp.

arithmetic_combinators

A sorted list of all instances of ArithmeticCombinator.

decider_combinators

A sorted list of all instances of DeciderCombinator.

constant_combinators

A sorted list of all instances of ConstantCombinator.

power_switches

A sorted list of all instances of PowerSwitch.

programmable_speakers

A sorted list of all instances of ProgrammableSpeaker.

boilers

A sorted list of all instances of Boiler. Boilers convert a fuel to heat a fluid (usually water) into another (usually steam).

generators

A sorted list of all instances of Generator. Generators convert a fluid (usually steam) into electricity.

solar_panels

A sorted list of all instances of SolarPanel.

accumulators

A sorted list of all instances of Accumulator.

reactors

A sorted list of all instances of Reactor.

heat_pipes

A sorted list of all instances of HeatPipe.

mining_drills

A sorted list of all instances of MiningDrill. This includes pumpjacks and any other extraction machine.

offshore_pumps

A sorted list of all instances of OffshorePump.

furnaces

A sorted list of all instances of Furnaces.

assembling_machines

A sorted list of all instances of AssemblingMachine. This includes chemical plants, oil refineries, and centrifuges.

labs

A sorted list of all instances of Lab.

beacons

A sorted list of all instances of Beacon.

rocket_silos

A sorted list of all instances of RocketSilo.

land_mines

A sorted list of all instances of LandMine.

walls

A sorted list of all instances of Wall.

gates

A sorted list of all instances of Gate.

turrets

A sorted list of all instances of Turret. Includes the contents of Factorio’s AmmoTurret, EnergyTurret, FluidTurret, and ArtilleryTurret.

radars

A sorted list of all instances of Radar.

electric_energy_interfaces

A sorted list of all instances of ElectricEnergyInterface.

linked_containers

A sorted list of all instances of LinkedContainer.

heat_interfaces

A sorted list of all instances of HeatInterface.

linked_belts

A sorted list of all instances of LinkedBelt.

infinity_containers

A sorted list of all instances of InfinityContainer.

infinity_pipes

A sorted list of all instances of InfinityPipe.

burner_generators

A sorted list of all instances of BurnerGenerator.