Skip to main content

librelingo_fakes

librelingo_fakes.fakes

This package contains fake data for testing LibreLingo-related packages.

The fake data is returned using the types from librelingo-types.

Usage

from librelingo_fakes import fakes

fakes.course1  # This is a Course() object
fakes.course2  # This is another Course() object
fakes.courseEmpty  # This is an empty course

For the full list of fakes, use the autocomplete or check out the this file.

Customizing fakes

You can use fakes.customize to change some attributes on a fake object. If you want to change the modules on fakes.course1, you'd do it like this:

fake_course = fakes.customize(fakes.course1, modules=[
    fake_module_1, fake_module_2
])

number

number(max_value=10000)

Returns a 'random' non-negative integer. It is NOT cryptographically-secure.

Metadata

Release files for librelingo_fakes 3.2.1

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

Source distribution (sdist)

Source distribution for librelingo_fakes 3.2.1
File Size Uploaded
librelingo_fakes-3.2.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for librelingo_fakes 3.2.1
File Interpreter ABI Platform
librelingo_fakes-3.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / librelingo_fakes-3.2.1.tar.gz

Download URL librelingo_fakes-3.2.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c489bd558036fcf1b8358b5d671dba62681617551bc45ca4deada70132864e61
BLAKE2b-256 checksum
How to use checksums
dc6e79b8070c3085df5f14f5bd8cd003f038912f62a0124ac99dcef69c3267cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.15.1 CPython/3.11.8 Linux/6.8.7-zen1-1-zen

Release files / librelingo_fakes-3.2.1-py3-none-any.whl

Download URL librelingo_fakes-3.2.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ba7586719c5c1a5ada39d5fb0d4b187bb62ab03ae8b6b3dda5fcbbd78353546
BLAKE2b-256 checksum
How to use checksums
c986fb2cdf235913aa3a5fe79e3182044487e670156ac51b5096fff4baaca252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.15.1 CPython/3.11.8 Linux/6.8.7-zen1-1-zen

Release history Release notifications | RSS feed

This release

3.2.1 This release

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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