# eclipse-pay
Made by LIZARD_OFFICIAL on scratch and youtube.
## Python (Backend)
### Available currencies
```python
eclipse_pay.LRCOIN
eclipse_pay.BLOCKBIT
```
### Currently down (If attempted to create, an Exception will be raised.)
```python
eclipse_pay.BLOCKCOIN
```
### Setup with password
```python
from eclipse_pay import BLOCKBIT
from scratchattach import WsCloudEvents
bb = BLOCKBIT(id2="<id of your project>",username="griffpatch",username="griffpatch",password="SecurePassword123!") # Same for both currencies
events = WsCloudEvents(*bb.h_data)
@events.event
def on_set(event):
bb.process(event)
```
### Setup with session id (for online IDEs)
```python
from eclipse_pay import BLOCKBIT
from scratchattach import WsCloudEvents
bb = BLOCKBIT(id2="<id of your project>",username="griffpatch",sessionid="SESSION ID HERE") # Same for both currencies
events = WsCloudEvents(*bb.h_data)
@events.event
def on_set(event):
bb.process(event)
```
### If person1 sends person2 10 blockbits AND it was after being requested using eclipse-pay,
```python
bb.process()
```
would return
```json
{
"sender":"person1",
"recipient":"person2",
"amount":"10"
}
```
while in the scratch project, the output of the api would be "1", because it simply requested to check if person1 has paid person2.
Requesting other currencies than BB and LRC
```python
from eclipse_pay import BaseCurrency
from scratchattach import WsCloudEvents
class MyCurrency(BaseCurrency):
PROJECT_ID = "<project id of the currency>"
```
**This will only work if the give request of the currency is the same as LRC**
Now it can be created like the other currencies.
## Scratch (Frontend)
In the API usage sprite:
![](https://raw.githubusercontent.com/LIZARD-OFFICIAL/pypi-assets/main/scratchblocks(1).svg)
In the ECLIPSE-PAY SPRITE (Necessary setup):
![](https://raw.githubusercontent.com/LIZARD-OFFICIAL/pypi-assets/main/scratchblocks(2).svg)
Check out: https://scratch.mit.edu/users/LIZARD_OFFICIAL
Raw data
{
"_id": null,
"home_page": "",
"name": "eclipse-pay",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,scratch,scratch.mit.edu,Blockbit,LRCOIN,BB,LRC,eclipseai",
"author": "LIZARD_OFFICIAL",
"author_email": "<lizard.official.77@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a8/a7/a4f4212fc49ce72bafb1d365aca04a4541fa7a47d7283d629413d9aed42c/eclipse-pay-1.1.1.tar.gz",
"platform": null,
"description": "\r\n# eclipse-pay\r\n\r\nMade by LIZARD_OFFICIAL on scratch and youtube.\r\n\r\n## Python (Backend)\r\n\r\n\r\n### Available currencies\r\n```python\r\neclipse_pay.LRCOIN\r\neclipse_pay.BLOCKBIT\r\n```\r\n\r\n\r\n### Currently down (If attempted to create, an Exception will be raised.)\r\n```python\r\neclipse_pay.BLOCKCOIN\r\n```\r\n\r\n### Setup with password\r\n```python\r\nfrom eclipse_pay import BLOCKBIT\r\nfrom scratchattach import WsCloudEvents\r\n\r\nbb = BLOCKBIT(id2=\"<id of your project>\",username=\"griffpatch\",username=\"griffpatch\",password=\"SecurePassword123!\") # Same for both currencies\r\nevents = WsCloudEvents(*bb.h_data)\r\n\r\n@events.event\r\ndef on_set(event):\r\n bb.process(event)\r\n```\r\n\r\n### Setup with session id (for online IDEs)\r\n```python\r\nfrom eclipse_pay import BLOCKBIT\r\nfrom scratchattach import WsCloudEvents\r\n\r\nbb = BLOCKBIT(id2=\"<id of your project>\",username=\"griffpatch\",sessionid=\"SESSION ID HERE\") # Same for both currencies\r\nevents = WsCloudEvents(*bb.h_data)\r\n\r\n@events.event\r\ndef on_set(event):\r\n bb.process(event)\r\n```\r\n\r\n\r\n### If person1 sends person2 10 blockbits AND it was after being requested using eclipse-pay,\r\n```python\r\nbb.process()\r\n```\r\nwould return\r\n```json\r\n{\r\n \"sender\":\"person1\",\r\n \"recipient\":\"person2\",\r\n \"amount\":\"10\"\r\n}\r\n```\r\n\r\nwhile in the scratch project, the output of the api would be \"1\", because it simply requested to check if person1 has paid person2.\r\n\r\n\r\nRequesting other currencies than BB and LRC\r\n```python\r\nfrom eclipse_pay import BaseCurrency\r\nfrom scratchattach import WsCloudEvents\r\n\r\nclass MyCurrency(BaseCurrency):\r\n PROJECT_ID = \"<project id of the currency>\"\r\n```\r\n**This will only work if the give request of the currency is the same as LRC**\r\n\r\nNow it can be created like the other currencies.\r\n\r\n## Scratch (Frontend)\r\n\r\nIn the API usage sprite:\r\n\r\n![](https://raw.githubusercontent.com/LIZARD-OFFICIAL/pypi-assets/main/scratchblocks(1).svg)\r\n\r\nIn the ECLIPSE-PAY SPRITE (Necessary setup):\r\n![](https://raw.githubusercontent.com/LIZARD-OFFICIAL/pypi-assets/main/scratchblocks(2).svg)\r\n\r\n\r\n\r\nCheck out: https://scratch.mit.edu/users/LIZARD_OFFICIAL\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Manage payments on scratch automatically.",
"version": "1.1.1",
"project_urls": null,
"split_keywords": [
"python",
"scratch",
"scratch.mit.edu",
"blockbit",
"lrcoin",
"bb",
"lrc",
"eclipseai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dd17edba2cc94f1d9ead6182ff2424446b7a07d4cd5072172ff5712fd5254494",
"md5": "feca2aaa7d31faeadef46dde4f36ce0e",
"sha256": "faf512961922c39e09197fc21714913ad49edbb33a2b22b31e186743aa88401b"
},
"downloads": -1,
"filename": "eclipse_pay-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "feca2aaa7d31faeadef46dde4f36ce0e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4703,
"upload_time": "2024-02-14T10:40:50",
"upload_time_iso_8601": "2024-02-14T10:40:50.629758Z",
"url": "https://files.pythonhosted.org/packages/dd/17/edba2cc94f1d9ead6182ff2424446b7a07d4cd5072172ff5712fd5254494/eclipse_pay-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a8a7a4f4212fc49ce72bafb1d365aca04a4541fa7a47d7283d629413d9aed42c",
"md5": "255e078f0274bafa4d4be37aacbcc145",
"sha256": "5f0e117df0056c429bd058fd974193300ea44118c4395ba883425c5efa3b398f"
},
"downloads": -1,
"filename": "eclipse-pay-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "255e078f0274bafa4d4be37aacbcc145",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4563,
"upload_time": "2024-02-14T10:40:52",
"upload_time_iso_8601": "2024-02-14T10:40:52.273647Z",
"url": "https://files.pythonhosted.org/packages/a8/a7/a4f4212fc49ce72bafb1d365aca04a4541fa7a47d7283d629413d9aed42c/eclipse-pay-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-14 10:40:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "eclipse-pay"
}