Skip to main content

Factory-trytond

Factory-trytond is a factory_boy extension developed to work with Tryton ERP. We can create our own ERP's model factories to do some testing or to populate our databases with some sample data.

How does it work?

Steps to use Factory-trytond:

  1. Inherit the base factory class.
  2. Define the meta model the factory will construct.
  3. Define the default declarations of the factory.

Note that the meta model can be a trytond pool model name.

Here's a factory example with Tryton's model User:

import factory
import factory_trytond

class UserFactory(factory_trytond.TrytonFactory):
    class Meta:
        model = 'res.user'

    name = factory.Faker('name')
    login = factory.Faker('user_name')

user = UserFactory.build()
user.save()  # it is a standard Tryton object as would be returned by Tryton's object pool

Metadata

Release files for factory-trytond 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for factory-trytond 1.0.0
File Size Uploaded Provenance Actions
factory-trytond-1.0.0.tar.gz 15.2 kB Without provenance Details for factory-trytond-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for factory-trytond 1.0.0
File Interpreter ABI Platform Actions
factory_trytond-1.0.0-py3-none-any.whl Python 3 none any Details for factory_trytond-1.0.0-py3-none-any.whl

Total release size: 30.4 kB

Release files / factory-trytond-1.0.0.tar.gz

Download URL factory-trytond-1.0.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b1382ee4bf2dd8e09a37a36594b889f4bc16746c8c6cdc2b9b04cde06c9f55ad
BLAKE2b-256 checksum
How to use checksums
8f4e165c12c19d4d9487a8b3da0d55b7d5532c73d9fb9c796ddec18c2e1df2a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / factory_trytond-1.0.0-py3-none-any.whl

Download URL factory_trytond-1.0.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a547f2c77d18e9e30219d7b625d64789de5fd7dce7a11224c73001e26f5632d
BLAKE2b-256 checksum
How to use checksums
9c4076faf9bb79f3d881953c6284d39f0bdbd6eef8756fe02dd8cf5914eb21e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for factory-trytond 1.0.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page