diff --git a/README.md b/README.md index 40d178b..91e85fd 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 45a6522..da32457 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/server-util/make-users.py b/server-util/make-users.py index b198a75..436c0a9 100644 --- a/server-util/make-users.py +++ b/server-util/make-users.py @@ -3,7 +3,7 @@ Command line module for making a bunch of test users. """ __all__ = ["make-users"] -__author__ = "Paco Hope " +__author__ = "Paco Hope " __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." diff --git a/setup.cfg b/setup.cfg index fd25b2b..686c1c0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] -name = toota-palooza +name = tootapalooza version = 1.0 [options] -packages = toota-palooza +packages = tootapalooza diff --git a/tootapalooza/__init__.py b/tootapalooza/__init__.py index 1b3aae0..aba0ef8 100644 --- a/tootapalooza/__init__.py +++ b/tootapalooza/__init__.py @@ -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' ) ''' diff --git a/tootapalooza/cli.py b/tootapalooza/cli.py index 4a64bf7..1f07da0 100644 --- a/tootapalooza/cli.py +++ b/tootapalooza/cli.py @@ -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 ' +__all__ = ['tootapalooza'] +__author__ = 'Paco Hope ' __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)