Package: blipy
# blipyBlipy is a http requester made specifically to be used with [BLiP.ai](https://portal.blip.ai/) endpoints, with some requests right out of the box. Available endpoints can be found in [BLiP documentation](https://docs.blip.ai).Instantiate requesters classes using the bot keyNo need to request all resources manuallyMagic## InstallationUsepipto install the package.`sh $ pip install blipy `## ModulesBlipy offers the following modules.Modules | Description |—— | —— |Types | Contains base types for the package |Http | Requesters like Lime and Postmaster |Postmasters | Pre configured Postmasters |### TypesBase types are used to have more control on operations over data#### Data`python Data.new(method, uri, toId, resourceType = None, resource = None) `Used by Lime client to output a json body to every request#### Date`python Date.new(year, month, day, hour = 0, minute = 0, second = 0) `Outputs a date in the format of a Lime QueryString`python Date.interval(startDate, endDate) `Outputs an object with keysstartDateandendDate#### Method
Dictionary to store the Lime methods used in requests#### Response
Class of serializable data to store Lime responses#### Resource
Class of serializable data to store Lime resources, which are part of responses#### Serializable
Serializable receives a json and creates a new object such as its members are capitalized keys of that json. This enables storing any json as an object without using Python’s reserved words such asfromandid#### URI`python new(baseuri, params = None) `Outputs an encoded URI to use with Lime, receivingparamsas a dictionary such as each param will be incorporated to the URI askey=value### HttpHTTP clients used to make requests to Lime. They require a bot authorization key, which can be obtained [here](https://docs.blip.ai/#http). Just copy and paste.#### Lime
Stardand Lime client to make any request`python lime = Lime(authorization) `Creates a new instance of lime using a bot authorization key`python lime.Get(uri, toId) `Returns a response to a get command touriand receivertoId`python lime.Set(uri, toId, resourceType, resource) `Returns a response to a set command touriand receivertoId, withresourceofresourceType`python lime.Delete(uri, toId) `Returns a response to a delete command touriand receivertoId`python lime.GetAll(uri, toId) `Returns a response with all resources touriand receivertoId`python lime.SetAll(uri, toId, resourceType, resources) `Returns a response to a set of set commands touriand receivertoId, with multipleresourcesofresourceType`python lime.DeleteAll(uri, toId, ids) `Returns a response to a set of delete commands touriand receivertoId, withidsof resources to be deleted#### Postmaster
APostmasteris responsible for handling messages inside an application. The only difference betweenPostmasterandLimeis that the parametertoIdgets subtracted, since the postmaster is a receiver of fixed identity of namepostmaster@APPLICATION_NAME.msging.netwhereAPPLICATION_NAMEis the name of the corresponding application`python pm = Postmaster(authorization, name) `Creates a new postmaster client to send requests topostmaster@`name`.msging.net### Postmasters
Pre configured postmaster with the most common operations available#### AIPostmaster
Client to send messages to AI application`python aip = AIPostmaster(authorization) `Creates a new instance of AI Postmaster using a bot authorization key#### AnalyticsPostmaster
Client to send messages to Analytics application`python anp = AnalyticsPostmaster(authorization) `Creates a new instance of Analytics Postmaster using a bot authorization key### TodosWrite testsComplete available postmastersAdd more postmasters