Skip to main content

dAmn connection library

Project description

dAmn Viper is a Python package created by photofroggy.

This package provides an API for connecting to and interacting with the dAmn chats. That is, deviantART’s messaging network chats.

This branch of dAmn Viper is only known to work with Python 2.7 and up due to use of the twisted library.

Brief example

Creating a client quickly for dAmn is quite easy using dAmn Viper. Below is one of the simplest examples of a client that simply connects, and tries to stay connected:

from twisted.internet import reactor
from dAmnViper.base import dAmnClient

dAmn = dAmnClient()

dAmn.user.username = 'username'
dAmn.user.token = 'authtoken'
dAmn.autojoin = ['Botdom']

dAmn.on_connection_start = lambda connector: reactor.start()
dAmn.teardown = lambda: reactor.stop()

dAmn.start()

That is all that is required! It is advised that you use the dAmnClient class when making applications that connect to dAmn. Chat bots and full clients can be made by extending the dAmnClient class to add functionality, as shown in the examples provided.

Dependencies

A disadvantage of using twisted is the acquisition of dependencies. This means that applications using dAmn Viper will depend on twisted as well as dAmn Viper.

It is more of an issue for end users, as they will not want to spend time installing multiple dependencies. This problem can, however, be eleminated by creating installers for applications using dAmn Viper.

As such, this is somewhat a non-point, but it does mean an installer has to be created to achieve easy setup for end users. Fortunately, installers are something which users tend to be ok at using, so long as they aren’t too complicated. Having an installer which downloads and installs multiple dependencies may complicate things too much. We’ll see.

Feedback

Feedback on this branch of dAmn Viper would be very much appreciated. Please send any feedback to my deviantART account via notes, or submit something on github, I dunno.

Thanks for reading.

DISCLAIMER

Disclaimer:

        dAmn Viper is in no way affiliated with or endorsed by deviantART.com.
This is not an official service of deviantART.com. This is an independent
project created by Henry Rapley:
        <http://photofroggy.deviantart.com>

        THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

dAmnViper-3.59.zip (55.4 kB view details)

Uploaded Source

dAmnViper-3.59.tar.gz (37.4 kB view details)

Uploaded Source

File details

Details for the file dAmnViper-3.59.zip.

File metadata

  • Download URL: dAmnViper-3.59.zip
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dAmnViper-3.59.zip
Algorithm Hash digest
SHA256 41653a8a03af38a710fa0a4a8bdc8dc87a99385e38cd70f3cd7215cd05bea3fe
MD5 f0079b929132f0dd32283a21c88d3f67
BLAKE2b-256 6489add40e336fe45c93428965af7a730a1e6bc12bb914e6c77621b09f903585

See more details on using hashes here.

File details

Details for the file dAmnViper-3.59.tar.gz.

File metadata

  • Download URL: dAmnViper-3.59.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dAmnViper-3.59.tar.gz
Algorithm Hash digest
SHA256 e90c6eee7f3f959e6d9051a503c4106dd09601c60f2ddf2311b8a3d0a336ab7e
MD5 6103c7626f416f16381b2d1985975043
BLAKE2b-256 0435b051357d93ce5f1479121043f4c3fe04cde6f0eea9996283d15e9a3fd083

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page