{"id":27442634,"url":"https://github.com/mueslo/pythonbits","last_synced_at":"2025-07-04T06:34:39.531Z","repository":{"id":46774098,"uuid":"119007118","full_name":"mueslo/pythonBits","owner":"mueslo","description":"A Python pretty printer for generating attractive movie descriptions with screenshots. ","archived":false,"fork":false,"pushed_at":"2021-12-06T16:32:17.000Z","size":1518,"stargazers_count":29,"open_issues_count":22,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-16T12:48:42.773Z","etag":null,"topics":["automation","form-submission","media","mediainfo","torrent"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mueslo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-26T04:52:37.000Z","updated_at":"2024-10-04T07:58:38.000Z","dependencies_parsed_at":"2022-08-27T18:42:30.768Z","dependency_job_id":null,"html_url":"https://github.com/mueslo/pythonBits","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mueslo%2FpythonBits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mueslo%2FpythonBits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mueslo%2FpythonBits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mueslo%2FpythonBits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mueslo","download_url":"https://codeload.github.com/mueslo/pythonBits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248984646,"owners_count":21193790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","form-submission","media","mediainfo","torrent"],"created_at":"2025-04-15T00:31:37.828Z","updated_at":"2025-04-15T00:32:23.876Z","avatar_url":"https://github.com/mueslo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pythonBits\n[![GitHub release](https://img.shields.io/github/release/mueslo/pythonbits.svg)](https://GitHub.com/mueslo/pythonBits/releases/)\n[![GitHub release](https://img.shields.io/github/release/mueslo/pythonbits.svg?include_prereleases)](https://GitHub.com/mueslo/pythonBits/releases/)\n[![PyPI version](https://img.shields.io/pypi/v/pythonbits.svg)](https://pypi.python.org/pypi/pythonbits/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pythonbits.svg)](https://pypi.python.org/pypi/pythonbits/)\n[![GitHub commits since release](https://img.shields.io/github/commits-since/mueslo/pythonbits/latest.svg)](https://github.com/mueslo/pythonBits/commits/master)\n[![GitHub license](https://img.shields.io/github/license/mueslo/pythonbits.svg)](https://github.com/mueslo/pythonbits/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/travis/mueslo/pythonBits/master.svg)](https://travis-ci.org/mueslo/pythonBits)\n#### A Python description generator for movies and TV shows\n\n## Install\n1. (Optional, highly recommended) Set up a virtualenv to avoid polluting your system with dependencies.\n  - with virtualenvwrapper: `mkvirtualenv pythonbits`\n    - activate the virtualenv with `workon pythonbits`\n2. Install pythonBits in one of the following ways\n  - install via `pip install pythonbits`\n  - clone and `pip install .`\n  - pipx\n  - (dev) clone, install requirements from setup.py and run as `python -m pythonbits` instead of `pythonbits`\n3. Install mediainfo, ffmpeg and mktorrent\u003e=1.1 such that they are accessible for pythonBits\n  - you can also manually specify things such as the torrent file or screenshots, this will prevent the programs from being called, removing the dependency\n\nIf you don't want to use a virtualenv but keep system pollution with PyPI packages to a minimum, install via `pip install --user`. For more information, visit [this site](https://packaging.python.org/guides/installing-using-pip-and-virtualenv/).\n\n## Usage\n```\nusage: pythonbits [-h] [--version] [-v] [-c {tv,movie}] [-u FIELD VALUE] [-i]\n                  [-t] [-s] [-d] [-b] [-f FIELD [FIELD ...]]\n                  [--num-cast NUM_CAST] [--num-screenshots NUM_SCREENSHOTS]\n                  PATH [TITLE]\n```\nUse `pythonbits --help` to get a more extensive usage overview\n\n## Examples\npythonBits will attempt to guess as much information as possible from the filename. Unlike in previous releases, explicitly specifying a category or title is usually not necessary. PATH can also reference a directory, e.g. for season packs.\n\nIn most cases it is enough to just run `pythonbits \u003cpath\u003e` to generate a media description. If running the desired features requires uploading data to remote servers, you will be prompted to confirm this finalization before it occurs.\n\n* Print mediainfo: `pythonbits -i \u003cpath\u003e`, equivalent to `pythonbits -f mediainfo \u003cpath\u003e`\n* Make screenshots: `pythonbits -s \u003cpath\u003e`\n* Write a description: `pythonbits -d \u003cpath\u003e`\n* Make a torrent file: `pythonbits -t \u003cpath\u003e`\n* Generate complete submission and post it: `pythonbits -b \u003cpath\u003e` (Note: YOU are responsible for your uploads)\n* Generate complete submission, use supplied torrent file and tags: `pythonbits -b -u torrentfile \u003ctorrentfile\u003e -u tags \"whatever,tags.you.like\" \u003cpath\u003e`\n\nIn case the media title and type cannot be guessed from the path alone, you can explicitly specify them, e.g. `pythonbits \u003cpath\u003e \"Doctor Who (2005) S06\"`or `pythonbits \u003cpath\u003e -c movie`.\n\nYou can increase the verbosity of log messages printed to the screen by appending `-v`. This would print `INFO` messages. To print `DEBUG` messages, append twice, i.e. `-vv`.\n\nYou can also import pythonbits to use in your own Python projects. For reference on how to best use it, take a look at `__main__.py`. Once you have created an appropriate `Submission` instance `s`, you can access any desired feature, for example `s['title']`, `s['tags']` or `s['cover']`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmueslo%2Fpythonbits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmueslo%2Fpythonbits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmueslo%2Fpythonbits/lists"}