Skip to main content

AMY Plugin

Amy Assistant

Just import amy to write your plugin.

from amy import Plugin, Instance, Message

class Messenger(FacebookClient, Instance):

    def onCreate(self, username):
        self.username = username

    def onAuth(self, token):
        FacebookClient.__init__(self, self.username, token)

    def onStart(self):
        FacebookClient.listen()

    def onStop(self):
        FacebookClient.stopListening()

    def myNewMessageFunc(message)
        unifiedMessage = Message()
            .setPlatform('messanger')
        #   .setUser(message['user'])
        #   ...
        Plugin.publishMessange(unifiedMessage.toDict())


def main():
    Messenger = Plugin('messenger', Messenger)


if __name__ == "__main__":
    main()

Metadata

Release files for amy 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amy 3.4.0
File Size Uploaded Provenance Actions
amy-3.4.0.tar.gz 4.7 kB Without provenance Details for amy-3.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amy 3.4.0
File Interpreter ABI Platform Actions
amy-3.4.0-py3-none-any.whl Python 3 none any Details for amy-3.4.0-py3-none-any.whl

Total release size: 10.2 kB

Release files / amy-3.4.0.tar.gz

Download URL amy-3.4.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
33ed12d0fab4050792e54e24b43bcc9b021206bd6fadecd69f8eaae3ac944dc0
BLAKE2b-256 checksum
How to use checksums
907ec56e37db22c777431932f8b16cce68b88d4871a6ffb3a00500d1cf1151f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

Release files / amy-3.4.0-py3-none-any.whl

Download URL amy-3.4.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e2903f005a656f93e5613a38ecebe1ab44542a49bb82f5ee24b3488a875026
BLAKE2b-256 checksum
How to use checksums
2cefef4a4f4651f32e78106fcfacc9e33e34186c43b9147c9a00779e7dde36b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

Security for amy 3.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page