These enums are a subclass of the standard enum.Enum
class.
To retrieve one of these enums see the Plugin Interface.
Through the client API, enums can be used by their member names and values interchangeably. Enum member names are case insensitive:
ItemType.Gallery == 1 # true
ItemType.Gallery == ItemType.gaLLeRy # true
It is recommended that enum members are used by their values and not names. Enum member names may change sometime in the future. It is not likely to happen but no promises.
CommandState
(value)¶An enumeration.
failed
= 6¶command has finished with an error
finished
= 4¶command has finished succesfully
in_queue
= 2¶command has been scheduled to start
in_service
= 1¶command has been put in a service (but not started or stopped yet)
out_of_service
= 0¶command has not been put in any service yet
started
= 3¶command has been started
stopped
= 5¶command has been forcefully stopped without finishing
ImageSize
(value)¶An enumeration.
Big
= 2¶Big image size
Medium
= 3¶Medium image size
Original
= 1¶Original image size
Small
= 4¶Small image size
x1280
= 12¶A maximum width of 1280
x1600
= 11¶A maximum width of 2400
x2400
= 10¶A maximum width of 2400
x768
= 14¶A maximum width of 768
x960
= 13¶A maximum width of 960
ItemSort
(value)¶An enumeration.
ArtistName
= 20¶Artist Name
CircleName
= 40¶Circle Name
CollectionDate
= 52¶Collection Date Added
CollectionGalleryCount
= 54¶Collection Gallery Count
CollectionName
= 51¶Collection Name
CollectionPublished
= 53¶Collection Date Published
CollectionRandom
= 50¶Collection Random
FilterName
= 35¶Tag
GalleryArtist
= 3¶Gallery Artist Name
GalleryCircle
= 11¶Gallery Circle
GalleryDate
= 4¶Gallery Date Added
GalleryPageCount
= 10¶Gallery Page Count
GalleryPublished
= 5¶Gallery Date Published
GalleryRandom
= 1¶Gallery Random
GalleryRating
= 8¶Gallery Rating
GalleryRead
= 6¶Gallery Last Read
GalleryReadCount
= 9¶Gallery Read Count
GalleryTitle
= 2¶Gallery Title
GalleryUpdated
= 7¶Gallery Last Updated
NamespaceTagNamespace
= 30¶Namespace
NamespaceTagTag
= 31¶Tag
ParodyName
= 45¶Parody Name
ItemType
(value)¶An enumeration.
Artist
= 7¶Gallery Artist
Category
= 8¶Category
Circle
= 11¶Circle
Collection
= 2¶Collection
Filter
= 3¶Filter
Gallery
= 1¶Gallery
Grouping
= 5¶Gallery Namespace
Language
= 9¶Language
Page
= 4¶Page
Parody
= 13¶Gallery Parody
Status
= 10¶Status
Title
= 6¶Gallery Title
Url
= 12¶URL
ItemsKind
(value)¶An enumeration.
all_items
= 1¶Add all items
inbox_items
= 3¶Add items from inbox
library_items
= 2¶Add items from library
Add items with missing tags from inbox
Add items with missing tags
Add items with missing tags from library
LogLevel
(value)¶An enumeration.
CRITICAL
= 10¶Critical
DEBUG
= 2¶Debug
ERROR
= 8¶Error
INFO
= 4¶Info
WARNING
= 6¶Warning
LogType
(value)¶An enumeration.
Changelog
= 1¶Changelog
Download
= 2¶Download
Metadata
= 3¶Metadata
NotificationType
(value)¶An enumeration.
Backup
= 6¶Backup
Custom
= 99¶Custom
Indexer
= 8¶Indexer
Meta
= 1¶Meta
PluginUpdate
= 5¶PluginUpdate
Restart
= 3¶Restart
Shutdown
= 4¶Shutdown
TrashSweeper
= 7¶TrashSweeper
Update
= 2¶Update
PluginState
(value)¶An enumeration.
Disabled
= 0¶Puporsely disabled
Enabled
= 4¶Plugin is loaded and in use
Failed
= 5¶Failed because of error
Installed
= 3¶Allowed to be enabled
Registered
= 2¶Was just registered but not installed
Unloaded
= 1¶Unloaded because of dependencies, etc.
Priority
(value)¶An enumeration.
High
= 3¶a high priority
Low
= 1¶a low priority
Medium
= 2¶a medium priority
ProgressType
(value)¶An enumeration.
CheckPluginUpdate
= 8¶A check for plugin update
CheckUpdate
= 3¶A check for new update
GalleryScan
= 5¶Scanning for galleries
ItemAdd
= 6¶Adding items to the database
ItemRemove
= 7¶Removing items from the database
Request
= 2¶Network request
Unknown
= 1¶Unknown
UpdateApplication
= 4¶Updating application
UpdatePlugin
= 9¶Upldating plugin
QueueType
(value)¶An enumeration.
Download
= 2¶a queue for downloading item
Metadata
= 1¶a queue for fetching metadata
ServerCommand
(value)¶An enumeration.
Logout
= 4¶Logout
RequestAuth
= 3¶Request authentication
ServerQuit
= 1¶Shut down the server
ServerRestart
= 2¶Restart the server
TemporaryViewType
(value)¶An enumeration.
GalleryAddition
= 1¶Contains gallery items to be added
ViewType
(value)¶An enumeration.
All
= 6¶Contains all items except items in Trash
Favorite
= 2¶Contains all favourite items (mutually exclusive with items in Inbox)
Inbox
= 3¶Contains only items in Inbox
Library
= 1¶Contains all items except items in Inbox and Trash
ReadLater
= 5¶Contains only items in ReadLater
Trash
= 4¶Contains only items in Trash
These are errors that HPX may raise. Any error raised not on this list is an unhandled exception and usually classifies as a critical error.
HappypandaError
(msg)¶Code: 100
Base Happypanda exception, all exceptions will derive from this.
CoreError
(where, message)¶Code: 101
Base Happypanda core exception, all core exceptions will derive from this.
- Args:
where: where the error occured message: explanation of error
TimeoutError
(where, message)¶Code: 102
Timed out
SettingsError
(where, message)¶Code: 110
Base settings error
SettingsNoExistError
(where, message)¶Code: 111
Settings doesn’t exist error
InvalidSettingError
(where, message)¶Code: 112
Invalid setting error
CommandError
(where, message)¶Code: 120
Base command error
CommandAlreadyRunningError
(where, message)¶Code: 121
Command is already running
ScanError
(where, message)¶Code: 130
Item scan error
PluginError
(name_or_node, message)¶Code: 200
Base plugin exception, all plugin exceptions will derive from this.
- Args:
name: name of plugin message: explanation of error
PluginAttributeError
(name_or_node, message)¶Code: 201
Plugin Attribute Error.
PluginCommandError
(name_or_node, message)¶Code: 202
Plugin Command Error.
PluginCommandNotFoundError
(name_or_node, message)¶Code: 203
Plugin Command Not Found Error.
PluginHandlerError
(name_or_node, message)¶Code: 204
Plugin Handler Error.
PluginSignatureError
(name_or_node, message)¶Code: 205
Plugin Signature Error.
PluginLoadError
(name_or_node, message)¶Code: 206
Plugin Load Error.
PluginInitError
(name_or_node, message)¶Code: 207
Plugin Init Error.
PluginInstallError
(name_or_node, message)¶Code: 208
Plugin Install Error.
PluginUpdateError
(node, *args, **kwargs)¶Code: 210
Plugin Update No HPlugin Error.
PluginUpdateHPluginError
(node, *args, **kwargs)¶Code: 211
Plugin Update HPlugin Error.
PluginUpdateInvalidURLError
(node, *args, **kwargs)¶Code: 212
Plugin Update Invalid Url Error.
PluginUpdateCheckError
(node, *args, **kwargs)¶Code: 213
Plugin Update Check Error.
PluginUpdateDownloadError
(node, *args, **kwargs)¶Code: 214
Plugin Update Down Error.
PluginNoHandlerError
(name_or_node, message)¶Code: 215
Plugin No Handler Error.
DatabaseError
(where, message)¶Code: 300
Base database exception, all database exceptions will derive from this.
DatabaseInitError
(msg)¶Code: 301
Database initialization error.
DatabaseVersionError
(msg)¶Code: 302
Database version error.
DatabaseItemNotFoundError
(where, message)¶Code: 303
Database item not found error
DatabaseDataError
(where, message)¶Code: 304
Database data error
EmptyNameError
(where, message)¶Code: 305
Database empty name error
ServerError
(where, message)¶Code: 400
Base server exception, all server exceptions will derive from this.
ClientDisconnectError
(where, message)¶Code: 401
Client disconnected.
InvalidMessage
(where, message)¶Code: 403
Invalid message error.
APIError
(where, message)¶Code: 404
API error.
APIRequirementError
(where, message)¶Code: 405
API requirement error.
AuthError
(where, msg)¶Code: 406
Auth Base Error.
AuthRequiredError
(where, msg)¶Code: 407
SessionExpiredError
(where, session_id)¶Code: 408
Session expired error.
EnumError
(where, message)¶Code: 409
Enum error.
ParsingError
(where, message)¶Code: 410
AuthWrongCredentialsError
(where, msg)¶Code: 411
AuthMissingCredentials
(where, msg)¶Code: 412
UserPermissionError
(where='', msg='')¶Code: 413
ClientError
(name, msg)¶Code: 500
Base client exception, all client exceptions will derive from this.
- Args:
name: name of client msg: error message
ConnectionError
(name, msg)¶Code: 501
Server connection error.
ServerDisconnectError
(name, msg)¶Code: 502
Server disconnected.
ArchiveError
(message)¶Code: 600
Base archive exception, all archive exceptions will derive from this
ArchiveCreateError
(filepath, error)¶Code: 601
Could not create archive object
ArchiveCorruptError
(filepath)¶Code: 602
Bad file found in archive
ArchiveFileNotFoundError
(f, archive_f)¶Code: 603
File not found in archive
ArchiveUnsupportedError
(f)¶Code: 604
Unsupported archive
ArchiveExtractError
(message)¶Code: 605
Archive extraction error
ArchiveExistError
(f)¶Code: 606
Archive does not exist error
NotAnArchiveError
(f)¶Code: 607
Not an archive
NetworkError
(message, properties=None)¶Code: 700
Base network exception, all network exceptions will derive from this
DownloadError
(message, properties=None)¶Code: 750
Base download exception, all download exceptions will derive from this
DownloadMoveError
(message, properties=None)¶Code: 751
Failed to move downloaded resource
ItemError
(where, message, item=None)¶Code: 800
Base item exception, all item exceptions will derive from this
FailedToMoveError
(where, message, item=None)¶Code: 801
Failed to move item source error
JSONParseError
(json_data, name, msg)¶Code: 900
JSON parse error.
Collection -> Grouping -> Gallery -> Page
Note
Grouping is not actually a direct descendant of Collection as can be seen below, but it is sometimes helpful to think of it as such.
Collection
Conventions (e.g.
C90
), magazine volumes (e.g.Girls forM vol.14
), tankōbon’s or a compilation of related/personal galleries
Grouping
Think of this as a namespace for related galleries. It is ideal for grouping multi-work galleries, so you use this as the series name. Since tankōbon’s also sometimes feature a complete series, you can use this for that too. It is not recommended to put tankōbon in both Collection and here. Choose one and stick to it to avoid confusion. Gallery’s
number
field is used in the context of a Grouping.
GalleryFilter
Think of this as those smart-playlists in music applications. It’s a compilation of galleries put together by the user either manually or through automatic search filtering. If you’ve used the old Happypanda then you should already be familiar with this. In old HP they were called gallery lists. Recommended usage is “anything”. It could range from your favorite fetishes to a shortcut for a search filter you’re tired of always typing in.
Gallery
A single chapter, then you group these chapters under a Grouping to form a complete series.
Gallery
A Gallery can have multiple Title, Artist and Parody
A Gallery can be in multiple Collection and GalleryFilter
A Gallery can only be in one Grouping
A Gallery will always be in a Grouping
Tags
Gallery and Page are the only taggable items. Collection and Grouping are not taggable, but they can display, and are searchable through tags of their children Gallery.
…
…
Note
You can right-click on the image and choose “Show image” to view it in its full dimensions