File: data_object.py

package info (click to toggle)
python-aiotractive 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: python: 298; makefile: 20
file content (8 lines) | stat: -rw-r--r-- 244 bytes parent folder | download
1
2
3
4
5
6
7
8
class DataObject:
    def __init__(self, api, data):
        self._api = api
        self._id = data["_id"]
        self.type = data["_type"]

    def __repr__(self):
        return f"<{self.__class__.__name__} id={self._id} type={self.type}>"