Aircraft turbine engine comprising - a mechanical drive device comprising a drive shaft; and - a lubrication unit comprising an auxiliary electrical device and an electrical generator intended to supply the auxiliary electrical device with electricity, the electrical generator comprising: • a pinion, • a drive means mechanically coupled with the pinion so as to drive the pinion in rotation, and mechanically coupled with the mechanical drive device, so that the mechanical drive device can drive the pinion in rotation via said drive means, • a ring arranged around the pinion to be able to be driven in rotation by the pinion so as to form an inner gear pump with the pinion, • a fluid inlet making it possible to supply the inner gear pump with fluid from the outside of the electrical generator, • a fluid outlet making it possible to make the fluid exit from the inner gear pump outwards from the electrical generator, • magnets mechanically coupled with the ring so as to rotate with it to form a rotor, • a stator arranged around the rotor and comprising coils such that a rotation of the rotor generates an electrical energy in said coils, and • an electrical connection means electrically connected to the coils and to the auxiliary electrical device and arranged to transfer an electrical energy generated in said coils to the auxiliary electrical device, such that the electrical generator is capable of compressing a fluid and of generating electrical energy when the pinion is driven in rotation by the drive means. - a mechanical drive device comprising a drive shaft; and - a lubrication unit comprising an auxiliary electrical device and an electrical generator intended to supply the auxiliary electrical device with electricity, the electrical generator comprising: • a pinion, • a drive means mechanically coupled with the pinion so as to drive the pinion in rotation, and mechanically coupled with the mechanical drive device, so that the mechanical drive device can drive the pinion in rotation via said drive means, • a ring arranged around the pinion to be able to be driven in rotation by the pinion so as to form an inner gear pump with the pinion, • a fluid inlet making it possible to supply the inner gear pump with fluid from the outside of the electrical generator, • a fluid outlet making it possible to make the fluid exit from the inner gear pump outwards from the electrical generator, • magnets mechanically coupled with the ring so as to rotate with it to form a rotor, • a stator arranged around the rotor and comprising coils such that a rotation of the rotor generates an electrical energy in said coils, and • an electrical connection means electrically connected to the coils and to the auxiliary electrical device and arranged to transfer an electrical energy generated in said coils to the auxiliary electrical device, • a pinion, • a drive means mechanically coupled with the pinion so as to drive the pinion in rotation, and mechanically coupled with the mechanical drive device, so that the mechanical drive device can drive the pinion in rotation via said drive means, • a ring arranged around the pinion to be able to be driven in rotation by the pinion so as to form an inner gear pump with the pinion, • a fluid inlet making it possible to supply the inner gear pump with fluid from the outside of the electrical generator, • a fluid outlet making it possible to make the fluid exit from the inner gear pump outwards from the electrical generator, • magnets mechanically coupled with the ring so as to rotate with it to form a rotor, • a stator arranged around the rotor and comprising coils such that a rotation of the rotor generates an electrical energy in said coils, and • an electrical connection means electrically connected to the coils and to the auxiliary electrical device and arranged to transfer an electrical energy generated in said coils to the auxiliary electrical device,