Renamed toota-palooza to tootapalooza

main
Paco Hope 2022-11-27 09:09:18 -05:00
parent dc68190e27
commit 8bd3ecac80
6 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
# toota-palooza
# tootapalooza
Python program to fill a mastodon timeline with randomized toots.
@ -26,15 +26,15 @@ You need:
This is a one-time thing you do ever. First time you go to run the bot in a new environment where it hasn't run before.
1. Find `toota-palooza/__init__.py` and edit it
1. Find `tootapalooza/__init__.py` and edit it
2. Edit the lines to uncomment them and change any values you need to (like app name and server)
3. Run it one time (e.g., `python __init__.py`). It should just exit, creating the file.
4. Edit the file and comment the lines out again. You just do that once.
# Running
Set get the `toota-palooza` command into your path so you can invoke it. Run `pip install -e .`
Set get the `tootapalooza` command into your path so you can invoke it. Run `pip install -e .`
Assuming everything is up to date, all your files initialised with correct values, you can just run `toota-palooza --once`.
Assuming everything is up to date, all your files initialised with correct values, you can just run `tootapalooza --once`.
By default it will try to run as a daemon.

View File

@ -1,7 +1,7 @@
[project]
name = "toota-palooza"
name = "tootapalooza"
version = "1.0"
authors = [{ name="Paco Hope", email="toota-palooza@filter.paco.to" } ]
authors = [{ name="Paco Hope", email="tootapalooza@filter.paco.to" } ]
description = "Fill a mastodon public timeline with public toots from bots who post gutenberg open texts."
readme = "README.md"
license = { file="LICENSE" }
@ -13,12 +13,12 @@ classifiers = [
]
[project.urls]
"Homepage" = "https://git.paco.to/nick/toota-palooza"
"Bug Tracker" = "https://git.paco.to/nick/toota-palooza/issues"
"Homepage" = "https://git.paco.to/nick/tootapalooza"
"Bug Tracker" = "https://git.paco.to/nick/tootapalooza/issues"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project.scripts]
toota-palooza = "toota-palooza.cli:main"
tootapalooza = "tootapalooza.cli:main"

View File

@ -3,7 +3,7 @@ Command line module for making a bunch of test users.
"""
__all__ = ["make-users"]
__author__ = "Paco Hope <toota-palooza@filter.paco.to>"
__author__ = "Paco Hope <tootapalooza@filter.paco.to>"
__date__ = "25 November 2022"
__version__ = "1.0"
__copyright__ = "Copyright © 2022 Paco Hope. See LICENSE for details."
@ -33,7 +33,7 @@ def randomName():
def main():
parser = argparse.ArgumentParser(
description="Create random users for toota-palooza"
description="Create random users for tootapalooza"
)
parser.add_argument(
"-d", "--debug", action="store_true", help="Enable debugging messages."

View File

@ -1,6 +1,6 @@
[metadata]
name = toota-palooza
name = tootapalooza
version = 1.0
[options]
packages = toota-palooza
packages = tootapalooza

View File

@ -2,9 +2,9 @@ from mastodon import Mastodon
'''
Mastodon.create_app(
'toota-palooza',
'tootapalooza',
api_base_url = 'https://always.grumpy.world',
to_file = '../.toota-palooza.env'
to_file = '../.tootapalooza.env'
)
'''

View File

@ -1,9 +1,9 @@
'''
Command line module for calling toota-palooza to do its work
Command line module for calling tootapalooza to do its work
'''
__all__ = ['toota-palooza']
__author__ = 'Paco Hope <toota-palooza@filter.paco.to>'
__all__ = ['tootapalooza']
__author__ = 'Paco Hope <tootapalooza@filter.paco.to>'
__date__ = '25 November 2022'
__version__ = '1.0'
__copyright__ = 'Copyright © 2022 Paco Hope. See LICENSE for details.'
@ -21,14 +21,14 @@ class Tooter(Mastodon):
credentials: dict = {}
hostname: str = ''
files: dict = {}
client_id: str = '.toota-palooza.env'
client_id: str = '.tootapalooza.env'
def __init__(self, name: str):
self.name = name
cred_dict = self.credentials[self.name]
self.username = cred_dict['addr']
self.password = cred_dict['pass']
self.cred_file = f'.toota-palooza-usercred-{self.name}.env'
self.cred_file = f'.tootapalooza-usercred-{self.name}.env'
super().__init__(client_id=self.client_id, api_base_url=self.hostname)