Renamed toota-palooza to tootapalooza
parent
dc68190e27
commit
8bd3ecac80
|
@ -1,4 +1,4 @@
|
||||||
# toota-palooza
|
# tootapalooza
|
||||||
|
|
||||||
Python program to fill a mastodon timeline with randomized toots.
|
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.
|
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)
|
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.
|
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.
|
4. Edit the file and comment the lines out again. You just do that once.
|
||||||
|
|
||||||
# Running
|
# 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.
|
By default it will try to run as a daemon.
|
|
@ -1,7 +1,7 @@
|
||||||
[project]
|
[project]
|
||||||
name = "toota-palooza"
|
name = "tootapalooza"
|
||||||
version = "1.0"
|
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."
|
description = "Fill a mastodon public timeline with public toots from bots who post gutenberg open texts."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { file="LICENSE" }
|
license = { file="LICENSE" }
|
||||||
|
@ -13,12 +13,12 @@ classifiers = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage" = "https://git.paco.to/nick/toota-palooza"
|
"Homepage" = "https://git.paco.to/nick/tootapalooza"
|
||||||
"Bug Tracker" = "https://git.paco.to/nick/toota-palooza/issues"
|
"Bug Tracker" = "https://git.paco.to/nick/tootapalooza/issues"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=61.0"]
|
requires = ["setuptools>=61.0"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
toota-palooza = "toota-palooza.cli:main"
|
tootapalooza = "tootapalooza.cli:main"
|
||||||
|
|
|
@ -3,7 +3,7 @@ Command line module for making a bunch of test users.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__all__ = ["make-users"]
|
__all__ = ["make-users"]
|
||||||
__author__ = "Paco Hope <toota-palooza@filter.paco.to>"
|
__author__ = "Paco Hope <tootapalooza@filter.paco.to>"
|
||||||
__date__ = "25 November 2022"
|
__date__ = "25 November 2022"
|
||||||
__version__ = "1.0"
|
__version__ = "1.0"
|
||||||
__copyright__ = "Copyright © 2022 Paco Hope. See LICENSE for details."
|
__copyright__ = "Copyright © 2022 Paco Hope. See LICENSE for details."
|
||||||
|
@ -33,7 +33,7 @@ def randomName():
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Create random users for toota-palooza"
|
description="Create random users for tootapalooza"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-d", "--debug", action="store_true", help="Enable debugging messages."
|
"-d", "--debug", action="store_true", help="Enable debugging messages."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = toota-palooza
|
name = tootapalooza
|
||||||
version = 1.0
|
version = 1.0
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = toota-palooza
|
packages = tootapalooza
|
||||||
|
|
|
@ -2,9 +2,9 @@ from mastodon import Mastodon
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Mastodon.create_app(
|
Mastodon.create_app(
|
||||||
'toota-palooza',
|
'tootapalooza',
|
||||||
api_base_url = 'https://always.grumpy.world',
|
api_base_url = 'https://always.grumpy.world',
|
||||||
to_file = '../.toota-palooza.env'
|
to_file = '../.tootapalooza.env'
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -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']
|
__all__ = ['tootapalooza']
|
||||||
__author__ = 'Paco Hope <toota-palooza@filter.paco.to>'
|
__author__ = 'Paco Hope <tootapalooza@filter.paco.to>'
|
||||||
__date__ = '25 November 2022'
|
__date__ = '25 November 2022'
|
||||||
__version__ = '1.0'
|
__version__ = '1.0'
|
||||||
__copyright__ = 'Copyright © 2022 Paco Hope. See LICENSE for details.'
|
__copyright__ = 'Copyright © 2022 Paco Hope. See LICENSE for details.'
|
||||||
|
@ -21,14 +21,14 @@ class Tooter(Mastodon):
|
||||||
credentials: dict = {}
|
credentials: dict = {}
|
||||||
hostname: str = ''
|
hostname: str = ''
|
||||||
files: dict = {}
|
files: dict = {}
|
||||||
client_id: str = '.toota-palooza.env'
|
client_id: str = '.tootapalooza.env'
|
||||||
|
|
||||||
def __init__(self, name: str):
|
def __init__(self, name: str):
|
||||||
self.name = name
|
self.name = name
|
||||||
cred_dict = self.credentials[self.name]
|
cred_dict = self.credentials[self.name]
|
||||||
self.username = cred_dict['addr']
|
self.username = cred_dict['addr']
|
||||||
self.password = cred_dict['pass']
|
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)
|
super().__init__(client_id=self.client_id, api_base_url=self.hostname)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue