Skip to main content

A library for The Farmer Was Replaced.

Reason this release was yanked:

The name of `__builtins__.py` is incorrect. You should using the newer version likes 0.1.1 to fix it.

Project description

Expand Library of The Farmer Was Relpaced

Just copy all the file into your save folder to use it. Also you can install this libray by excuting pip install TFWR-expand.

Enjoy it!

Document

Basically, __builtin__.py, __init__.py and _tfwr_official_provided.__builtins__.py provide the Python language features to you. They are Python scripts which can't be imported in the game.

algorithms

import algorithms.

qsort(arr)

Calling algorithms.qsort(arr) with any list will sort it.

For example:

from algorithms import qsort

arr = [3, -1, 11, 0, 7]

qsort(arr)

print(arr)  # [-1, 0, 3, 7, 11]

tools

import tools.

has_item(item)

Calling tools.has_item(item) for checking whether player has Items. Returns True if the player has it, otherwise False.

cost_enough(entity, level=None, scale=1.0)

Calling tools.cost_enough(thing, level=None, scale=1.0) for checking whether player has enough item(s) to buy or plant the thing. Returns True if the player has enough item(s), otherwise False.

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

tfwr_expand-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

tfwr_expand-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file tfwr_expand-0.1.0.tar.gz.

File metadata

  • Download URL: tfwr_expand-0.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tfwr_expand-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa4aa788ed9963a522f03ade3a2a7a224320b697fa6a573d4e12869ece5ec662
MD5 93d823c974af3094897c545b72ff7221
BLAKE2b-256 e745a4b6c0c3076e7ba46475147a568c2a5d5253fd21f72e8c8e1b40bf7f4469

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfwr_expand-0.1.0.tar.gz:

Publisher: publish-pypi.yml on Orange23333/tfwr-expand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tfwr_expand-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tfwr_expand-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tfwr_expand-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 069d565c7241a44f061d054f2813442144c7e96b3f3228174232b1cf05276c40
MD5 74d220ae152f0d1c396614f537b093ca
BLAKE2b-256 ec16931b28adaa7d171cb313c33f19015016087a8271709fa94953ea01cc4f24

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfwr_expand-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Orange23333/tfwr-expand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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