Skip to main content

A simple tool to synchronize between moxfield.com and cockatrice

Project description

Moxtrice

A simple tool to synchronize between moxfield.com and cockatrice

Installation

Clont it and pip install . or simply

pip install moxtrice

Usage

To get started, simply run the following command:

moxtrice

By default, Moxtrice will download all public lists for the default user (me) into the current directory. You can override this by specifying a different username:

moxtrice --config.usernmae Yourname

Moxtrice will create a config file if you don't already have one. The config file looks like this:

decks:
- rMUqj1P1FEibzEFgpKqtSA
- uIbk-vrQjkaxqo_be_FFnQ
- -u5QNxgKb0uaU9t8vzztig
- C5hPo-DBXEa1uoibleNyTg
- jOPwBWIhokyYe8sjfcG3fA
- 3-GvVXtlgkWPmarhFwxphg
- Upa29gKDwES3C9InEcPUzw
- F8tbsl4bT0ObYoJyPQGyyA
- 6KIIGaY0G0ek6Dauhj5y-g
username: facet

Where the code are the string follows "https://www.moxfield.com/decks/" in your decklist url.

All synchronized lists are those defined in decks and all public decks from the specified user. This allows you to follow others and stay up to date.

To change the directory where the downloaded decks are saved, use the following command:

moxtrice --deckpath "path/to/yourdirectory"

Configuration

You can modify the config file to change various settings, such as the username and the list of decks to synchronize. For example:

decks:
- rMUqj1P1FEibzEFgpKqtSA
- C5hPo-DBXEa1uoibleNyTg
- Upa29gKDwES3C9InEcPUzw
username: Yourname

the config file named .moxtrice.yml in your home directory("C:/Users/username" in Windows and "/home/usernmae" in unix-like).

You can also leave decks empty by:

decks: []

the config file named .moxtrice.yml in your home directory("C:/Users/username" in Windows and "/home/usernmae" in unix-like).

Cautions

  • Formats other than commander are supported, but they have not been thoroughly tested.
  • Some dual-faced/transformed card names may be inconsistent between moxtrice and cockatrice.
  • Currently, only public lists are supported because moxtrice's API is not public and we cannot really "login". According to moxfield's FAQ, this could be implemented if this project gets more attention and satisfies moxfield's requirements.

Acknowledgments

Moxtrice would not be possible without the following resources:

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

moxtrice-0.1.dev18.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

moxtrice-0.1.dev18-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file moxtrice-0.1.dev18.tar.gz.

File metadata

  • Download URL: moxtrice-0.1.dev18.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moxtrice-0.1.dev18.tar.gz
Algorithm Hash digest
SHA256 3652d43494534e68be80b0144ff951c000158a04608477722c745038cf2753ca
MD5 9c15a8b5a3828ca861cfe76af6dae9d8
BLAKE2b-256 368ec0736e6693dd2a4d70d781cebeb6d7cd7c7ec7448f4407aa8ef5e68c9242

See more details on using hashes here.

Provenance

The following attestation bundles were made for moxtrice-0.1.dev18.tar.gz:

Publisher: publish.yml on fecet/moxtrice

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

File details

Details for the file moxtrice-0.1.dev18-py3-none-any.whl.

File metadata

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

File hashes

Hashes for moxtrice-0.1.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 e205994144fb1d20e98c04751671fa0b77548d26e163badc7feef2555e8fdd31
MD5 131b56201f7867dae8b1aac31a3f1baf
BLAKE2b-256 0d4cbe2b391144314b4a928c3eec075968596fd40fc5487575ad1bdd84ed093e

See more details on using hashes here.

Provenance

The following attestation bundles were made for moxtrice-0.1.dev18-py3-none-any.whl:

Publisher: publish.yml on fecet/moxtrice

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