Skip to main content

A powerful library for curating games for Flashpoint.

Project description

General Overview

"fpclib" stands for "Flashpoint Curation Library" and is a powerful collection of functions and classes you can use and extend to hopefully curate any game/animation in existence through python3. If you're not familiar with curating for Flashpoint and would like to know how to curate, first follow the Curation Tutorial page on the Flashpoint wiki. If you're not familiar with using python or coding, you should read the official python tutorial before using this library.

Although there are already several useful tools you can use for manually curating games/animations for Flashpoint and downloading assets easily, such as Flashpoint Core, cURLsDownloader, and MAD4FP, none of these tools offer the ability to curate through code or automate the process; fpclib was created to fix that. fpcurator uses fpclib to automatically generate curations. Of course, you should still always manually check any curation you make with fpclib in Flashpoint Core to make sure it works properly.

There are numerous benefits of using fpclib/fpcurator to help you curate:

  • By default, fpclib downloads main game/animation files and puts them in the right file format based upon your launch commands.
  • Logos and screenshots can be automatically downloaded from online and converted to PNG files.
  • Curating similar games/animations from one or more websites is simple and easy thanks to the fpclib.curate() function.
  • Nearly every kind of Curation is possible to make with this library! This library and documentation were created with the intent of making it easy to overwrite the Curation class to make it do different things. Anything you can do in the "Curate" tab in Flashpoint Core you can do with fpclib, except test games.

Here's some example code of using the library to curate "Interactive Buddy" from Newgrounds:

# Import fpclib curation
from fpclib import Curation

# Create a curation from a given url
curation = Curation(url='https://www.newgrounds.com/portal/view/218014')
# Set the logo of the curation
curation.logo = 'https://picon.ngfiles.com/218000/flash_218014_medium.gif'

# You can set metadata through the object directly or through the set_meta method
curation.set_meta(title='Interactive Buddy', tags=['Simulation', 'Toy'])
curation.set_meta(dev='Shock Value', pub='Wrong Publisher')
curation.pub = 'Newgrounds'
curation.ver = '1.01'
curation.date = '2005-02-08'

# Add an additional app
curation.set_meta(cmd='http://uploads.ungrounded.net/218000/218014_DAbuddy_latest.swf')
curation.add_app('Kongregate v1.02', 'http://chat.kongregate.com/gamez/0003/0303/live/ib2.swf?kongregate_game_version=1363985380')

# Export this curation to the current working directory
curation.save()

You can also test the library by running the script directly or with fpclib.test(), which will also curate "Interactive Buddy" in the current working directory, delete the curation, and check an invalid curation.

More Reading

You can read more about this library in the official documentation.

Usage

fpclib is available on pypi or pip; however, it requires a specific version of ruamel.yaml in order to run.

It is recommended that you install fpclib with poetry (poetry add fpclib) or something like pipx (pipx install fpclib) to run it properly.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

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

fpclib-1.9.2.1.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

fpclib-1.9.2.1-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file fpclib-1.9.2.1.tar.gz.

File metadata

  • Download URL: fpclib-1.9.2.1.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.47

File hashes

Hashes for fpclib-1.9.2.1.tar.gz
Algorithm Hash digest
SHA256 cb7d244f6312da0f2de8d3420645ca68cce73b73ed254e9426c777d4b00cd609
MD5 9ce7e1683206651472cd9df938d980fc
BLAKE2b-256 fe8567dd1051840d06d88eb31fb151eee60931e26dff016516245a3d7b6cd9a2

See more details on using hashes here.

File details

Details for the file fpclib-1.9.2.1-py3-none-any.whl.

File metadata

  • Download URL: fpclib-1.9.2.1-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.47

File hashes

Hashes for fpclib-1.9.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b537d6cda24d13e9f6370178762f2a0c87a34fab904e4929a3dcd1bda5d8ed99
MD5 9fe4be006a9fba7ab2aead4cc09426a1
BLAKE2b-256 b530810879c9a9a1675ac9d0566a1eb2a19f1278e9a4e576398ed4c506db450c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page