-
Notifications
You must be signed in to change notification settings - Fork 567
Initial commit for autogpt-twitter plugin - Twitter API Integrations for AutoGPT using Tweepy! #7
Initial commit for autogpt-twitter plugin - Twitter API Integrations for AutoGPT using Tweepy! #7
Conversation
Looks like we should adjust the scaffolding repo. We shouldn’t need all the project config stuff for each project. I think you should just need to replace the twitter plugin’s init.py and add the twitter.py file in the same twitter directory |
setuptools | ||
build | ||
twine | ||
tweepy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the base repo with this
plugins/autogpt-twitter/README.md
Outdated
@@ -0,0 +1,40 @@ | |||
# autogpt-twitter 🐣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to plugins/twitter
@@ -0,0 +1,256 @@ | |||
"""Twitter API integrations using Tweepy.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to plugins/twitter
@@ -0,0 +1,92 @@ | |||
"""This module contains functions for interacting with the Twitter API.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to plugins/twitter
I'm a bit confused, do you just want me to rename the autogpt-twitter directory to twitter, and only include the And within |
Yes, the rest for code quality coverage etc should use the ones from the root of the repo. I don’t think the example plug-in package is very clear about that is it? |
Not really, but we're figuring it out as we go! Don't quote me, but I believe the current example plug-in package is fairly complex with a lot of extra functionality for integrating your own LLM, it's not anywhere near as simple as a plugin for adding in commands to interface with an API. |
That makes sense. Part of the goal of getting the twitter one in first is twitter like things are a really common request so having an example of it is really helpful |
Alright, what do you think of the changes so far? |
plugins/twitter/pyproject.toml
Outdated
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "autogpt_twitter" | ||
version = "0.0.1" | ||
authors = [ | ||
{ name="desojo", email="17620345+desojo@users.noreply.github.com" }, | ||
] | ||
description = "AutoGPT Twitter integration using the Tweepy API." | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = ["abstract-singleton", "tweepy", "pandas", "auto_gpt_plugin_template"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/desojo/autogpt-twitter" | ||
"Bug Tracker" = "https://github.com/desojo/autogpt-twitter" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py38'] | ||
include = '\.pyi?$' | ||
extend-exclude = "" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.pylint.messages_control] | ||
disable = "C0330, C0326" | ||
|
||
[tool.pylint.format] | ||
max-line-length = "88" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think we need this one
plugins/twitter/requirements.txt
Outdated
black | ||
isort | ||
flake8 | ||
pylint | ||
abstract-singleton | ||
wheel | ||
setuptools | ||
build | ||
twine | ||
tweepy | ||
pandas | ||
auto_gpt_plugin_template | ||
python-dotenv | ||
pathlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't really consider this. Make a new file in the base of the repo called requirements_all.txt with the following contents:
# Auto-GPT Plugins Full dependency set
-r requirements.txt
# plugins/twitter
tweepy
And include any specific packages you need
The changes are really good! Just a few comments as I figure this all out, sorry! |
Wait, sorry again for you being the test pilot, but I think the path is supposed to be src/autogpt_plugins/twitter/init.py, etc., for all of these. I forgot we moved them. |
Looking way better, See
They were moved to simplify the imports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
This is the initial commit for autogpt-twitter. View the readme.md located within the autogpt-twitter plugin for installation and setup instructions!