{ "info": { "author": "Freeman", "author_email": "freeman@straks.tech", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.6" ], "description": "![STRAKS-POS](strakspos/assets/repo_logo.png)\n\n____________________________________\n\n```\n Licence: Apache Licence\n Origin Author: Simon Volpert (https://github.com/simon-v/minipos/)\n Port Maintainer: STRAKS Developers (freeman@straks.tech)\n Language: Python\n Homepage: https://straks.tech/\n```\n\n\nSTRAKS POS is a simple self-hosted point-of-sale server, intended for use by small merchants and brick-and-mortar stores, that can be operated from any device with a relatively modern web browser.\n\nWith STRAKS POS you can begin receiving STAK payments without exposing your funds to a third party, or even to your own cashiers at any point in the process, by simply giving it a list of STRAKS addresses or an extended public key to work with.\n\n### Installation\n\nTo run STRAKS POS, you will need an Internet-connected computer with Python 3 and pip installed. Optionally git aswell.\n\nThe easiest way to install is using pip, note depending on your version of pip you may need to run pip3 instead of pip:\n```\n#Windows & Mac\npip install strakspos\n\n#Linux\nsudo pip3 install strakspos --install-option=\"--install-scripts=/usr/local/bin\"\n```\n\nYou can also install directly from the source code:\n\nUsing git\n```\ngit clone https://github.com/straks/strakspos.git\ncd strakspos\npython install.py\n```\n\nIf you do not have git installed use the following option\nUsing .zip:\n```\ndownload: https://github.com/straks/strakspos/archive/master.zip\nunzip: strakspos.zip\ncd strakspos-master\npython install.py\n```\n\n### Setup\n\nOnce installed the server can be run in one of three ways. The first is a command the installiation will make avaiable in your terminal or command prompt named `strakspos`. The second is to run the package using python3 from the command line `python3 -m strakspos.main`. The third is to run the strakspos.py file `python3 strakspos.py` that is avaiable in the root directory of the source code downloaded from github or extracted from the .zip file. \n\nThe first time you run `strakspos` it will prompt you to enter either STRAKS addresses or an extended public key:\n\n```\nWelcome To STRAKS Point Of Sale\nTo begin please choose to add either STRAKS addresses or an extended public key (xpub)\n[1] STRAKS Addresses\n[2] xpub\n```\nChoose either option. For the addresses copy and paste the STRAKS addresses you want to include in the system, press q when you are done. For the extended public key generate it from the STRAKS electrum wallet 'Wallet->Information->Master Public key' and insert it into the prompt. STRAKS POS will then create a configuration file `strakspos.cfg` in the $HOME/.strakspos folder. It will use this as the defualt location for its data directory. \n\nAdditionally if you would like to supply a large amount of static STRAKS addresses, create an `address.list` file in the data directory that contains a newline seperated list of STRAKS addresses.\n\nBy default strakspos will look in the following directories in order for a strakspos.cfg file, if one is found it will use that as the default data directory.\n* `$HOME/.strakspos`\n* `$HOME/.config/strakspos`\n* The current directory .\n\nAdditionally a data directory can be supplied as the first argument:\n\n`strakspos /path/to/directory'`\n\n\nBelow are some of the other configuration options you may consider changing before starting the server:\n* `currencies` - The fiat currencies you accept\n* `taxrate` - The tax rate that can be optionally applied to payments\n* `port` - The network port to host the point of sale server on (default: 8080)\n* `label` - The label to display on the POS\n* `allowed_ips` - The IP addresses that are allowed to access the site (default: 0.0.0.0 [all])\n\n\nFinally, run the `strakspos`, and take note of the computer's IP address. You will use it to connect to the STRAKS POS server.\n\nTo obtain your computer's IP address use the following commands:\n```\nifconfig / ipaddr - Mac/Linux\nipconfig - Windows\n```\n\nIf you wish to run the STRAKS POS as a background task on Mac or Linux use the following, and take note of the process ID that is displayed.\n`strakspos &`\n\n\nA systemd service file has also been provided in the source code for use on linux machines.\n\n### Usage\n\nNavigate to the server's address and port from any device with a relatively modern browser.\n\nIn the request creation page, enter the amount you wish to charge. You can use the percent button to apply a sales tax or crypto discount to the amount you have entered. Press the green check mark button.\n\nHave your buyer scan the resulting QR code with their STRAKS wallet and authorize the transaction. Alternatively, you can click/tap on the QR code to copy the request URI to clipboard and send it to your buyer in a text message.\n\nWait for the transaction to be detected by the system. Press the `Finish` button and hand the buyer his purchase (in any order).\n\nTo review your sales, use the built-in log browser, accessible from the triple bar button. You can view a daily, weekly, monthly and yearly summary, print it, or email it to yourself at the configured email address.\n\n\n### Customization\n\nIf you would like to have a custom header and footer on your welcome and log pages, create files in your data directory named `welcome_footer.html`, `log_header.html` and `log_footer.html` with the desired HTML content.\n\nAny file placed in the data directory overrides its counterpart in the library directory. Images and other files that you want to be directly accessible to the web browser should be placed in the `assets` subdirectory.\n\n### Setting up with a web server\n\nSTRAKS POS doesn't need a web server to run, as it provides its own. It also doesn't care what the URL used to access it looks like, and will happily serve its content on a bare IP address, a subdomain or a directory. However, if you wish it to be accessible on port 80, you will need to set up a reverse proxy. An example Nginx configuration, is provided below\n\n```\nserver {\n server_name strakspos;\n\n\n location /strakspos {\n proxy_pass http://127.0.0.1:8080/;\n proxy_cache off;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_pass_header Server;\n }\n}\n\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://straks.tech", "keywords": "STRAKS STAK POS minipos", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "strakspos", "package_url": "https://pypi.org/project/strakspos/", "platform": "", "project_url": "https://pypi.org/project/strakspos/", "project_urls": { "Homepage": "https://straks.tech" }, "release_url": "https://pypi.org/project/strakspos/1.0.5/", "requires_dist": null, "requires_python": "", "summary": "STRAKS POS", "version": "1.0.5" }, "last_serial": 3922731, "releases": { "0.0.13": [ { "comment_text": "", "digests": { "md5": "96fcfd1b0ea4d12acaa1081383fae59d", "sha256": "fe9dd5b412e1aa9c0ee0009ea275206727bf9b050f121b434191193352436aeb" }, "downloads": -1, "filename": "strakspos-0.0.13.tar.gz", "has_sig": false, "md5_digest": "96fcfd1b0ea4d12acaa1081383fae59d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 595708, "upload_time": "2018-06-01T00:36:14", "url": "https://files.pythonhosted.org/packages/87/a3/599f4ed6b15eb6325b9bc1ad20e877ee67de163bef95463b8f0ea0a71e60/strakspos-0.0.13.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "9f08bfd2f4ebffeed4978ecada565ab6", "sha256": "b28b165e5535d459a945ec05805d6ee3366cef6e137a93ddeb99686ac0848df5" }, "downloads": -1, "filename": "strakspos-1.0.tar.gz", "has_sig": false, "md5_digest": "9f08bfd2f4ebffeed4978ecada565ab6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18338, "upload_time": "2018-05-31T02:30:04", "url": "https://files.pythonhosted.org/packages/7a/e8/0ed715bd39573ea2a67c073a8ab3cedb1203fcbda9c622972138a2dd3294/strakspos-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9b18be3606f34fce71f78dc54619c1ac", "sha256": "d29507728b349c4eee6fccea7ec108088e389ac602d10c4529044b0f6e20ffa2" }, "downloads": -1, "filename": "strakspos-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9b18be3606f34fce71f78dc54619c1ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 595755, "upload_time": "2018-05-31T20:49:18", "url": "https://files.pythonhosted.org/packages/2b/e6/5534331d454a61f67f6e751e53f94543a5c013762e66b2c8371e70115ba0/strakspos-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "5803701879f4453aca2f306644204076", "sha256": "c696902a3519579281859f8ae4956590d9d8d99bebca912327f53ed4f7cf2b02" }, "downloads": -1, "filename": "strakspos-1.0.2.tar.gz", "has_sig": false, "md5_digest": "5803701879f4453aca2f306644204076", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 595679, "upload_time": "2018-06-01T00:39:09", "url": "https://files.pythonhosted.org/packages/ed/d0/4568ece3ed05d7eac3f1483aa5002ae4afcb3976f1526662ce0f33b283cc/strakspos-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "c138322c98b7a53c35e58029b213fe36", "sha256": "eeb661993134ebfc1d62d829ee68c2d0f45ed1dc1f0800c528c2bfffb027cd09" }, "downloads": -1, "filename": "strakspos-1.0.3-py3.6.egg", "has_sig": false, "md5_digest": "c138322c98b7a53c35e58029b213fe36", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 617260, "upload_time": "2018-06-02T01:58:58", "url": "https://files.pythonhosted.org/packages/05/92/e58d025fc2977fcb541135de528fea314ca10af07ffa001c007cba5d7b1d/strakspos-1.0.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "350e77d379b63f5487228b17e4d84a1a", "sha256": "8fcf6fb0c9d88637c5ba9c6d50ff57c3f035d6018c74830b0945146c330e345a" }, "downloads": -1, "filename": "strakspos-1.0.3.tar.gz", "has_sig": false, "md5_digest": "350e77d379b63f5487228b17e4d84a1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596216, "upload_time": "2018-06-01T17:58:52", "url": "https://files.pythonhosted.org/packages/2d/76/3213f4b2ba8ec1da33823bdc46949908ff670942373a73ebe5caee2a89d2/strakspos-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "e8708314c234e3cb3b45b0b7aa4b7320", "sha256": "d82043e317c4e45be66eb0210785bb74fcd918a756a8876d863dcde2b565df7c" }, "downloads": -1, "filename": "strakspos-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e8708314c234e3cb3b45b0b7aa4b7320", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596089, "upload_time": "2018-06-02T01:59:16", "url": "https://files.pythonhosted.org/packages/01/e3/f9fc0cfd5f6412c694d0620d90c91c35917a76b98f320159706cc3f52192/strakspos-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "5acec4ea21b47c48c3069f4e943e2f63", "sha256": "7f96e8601cdd5dc0de7871a78ca92398adb2ba18c86acb9ccc31480f6c5bf2ca" }, "downloads": -1, "filename": "strakspos-1.0.5.tar.gz", "has_sig": false, "md5_digest": "5acec4ea21b47c48c3069f4e943e2f63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596492, "upload_time": "2018-06-02T02:12:00", "url": "https://files.pythonhosted.org/packages/4a/07/700ac1f7ff4d8d6b6cf714889897136c16dbd205b73fb42705b3cbdeab79/strakspos-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5acec4ea21b47c48c3069f4e943e2f63", "sha256": "7f96e8601cdd5dc0de7871a78ca92398adb2ba18c86acb9ccc31480f6c5bf2ca" }, "downloads": -1, "filename": "strakspos-1.0.5.tar.gz", "has_sig": false, "md5_digest": "5acec4ea21b47c48c3069f4e943e2f63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596492, "upload_time": "2018-06-02T02:12:00", "url": "https://files.pythonhosted.org/packages/4a/07/700ac1f7ff4d8d6b6cf714889897136c16dbd205b73fb42705b3cbdeab79/strakspos-1.0.5.tar.gz" } ] }