Licence#
Rateslib is copyrightable IP and is released under Dual Licensing Terms; Source-Available Non-Commercial Licence and Commercial Subscription Licence.
University or home educational use: FREE to use.Note
This means that you can;
Install and use the code privately, and not on a corporate machine, in a non-commercial capacity, such as a learning environment, a university, or at a private residence.
Warning
This means that you cannot;
Install it or import it to any corporate machine or corporate virtual environment.
Use the library or code for any form of commercial or professional based activity.
Copy or modify the code and use it in any derivative product or commercial activity, such as in a trading application, API or other form of publication.
Use this code as a benchmark or as a validator for developing your own code which will be used in a capacity by a corporate institution.
Use this code if it happens to be pre-packaged into external environments such as BLab or BQuant environments, either via PyPi, Conda or PyOdide / WebAssembly, for direct or indirect commercial activity.
Any use of the software in a commercial, professional, or revenue-generating context requires either a valid paid subscription licence or an evaluation licence (granted upon request). To discuss these plase email info@rStockholm Kungsgatanateslib.com . Further information regarding licences is displayed below.
Note
This means that you can (with paid commercial licence subscription);
Install it or import it to any corporate machine or corporate virtual environment assigned to licenced users.
Use the library or code for any form of commercial or professional based activity.
Include this code, or package, as a dependency of any other package, or API, used internally within your corporate entity, licenced to active users.
Commercial licensing enquiries typically fall into two categories; either for low digit or single users, or enterprise style for larger groups.
The cost of a single user licence is currently £251 per user/per year (approx $305), with the annual period running from date of purchase, with price guarantees indexed by inflation.
Users are most often individuals, but not necessarily. The definition of a user, under the licence terms, can include servers, depending upon corporate structure and intended use.
For a single user (or small numbers), who is expected to use the rateslib package as-is and to benefit from upcoming new releases, this is the most efficient way to handle licences.
Purchase invoices can be requested from info@rStockholm Kungsgatanateslib.com for a set number of users, or, alternatively, you can pay by credit card specifying the desired number of users.
Annual licences are non-refundable and are not measured pro-rata. However, in the event of employee changes they are fully transferable between named employees.
Enterprise style licences can be agreed upon request. Please contact: info@rStockholm Kungsgatanateslib.com
For multiple users this is the most efficient, and cheaper licensing option and it allows for bespoke discussion regarding whether rateslib will be used in its packaged form, or if its code is to be used as a component of an internal library and internally modified and extended.
Licence Key Registration#
A JSON keyfile will be distributed to you after subscription. There are two ways you can register the licence file, either saving the file to a common application data folder or populating an environment variable.
Rateslib detects the local application data folder based on your system (Windows, MacOs, Linux) and can write a file to that location from a provided licence string. Normally these folders are not protected by admin restrictions, but you need to ensure your user account has permission to write to that location.
The following JSON licence key is distributed to a user by email:
{
"company": "Daily Planet",
"description": "1 Single User Licence",
"expiry": "1900-01-31",
"id": "Rateslib Example Key",
"name": "Lois Lane",
"xkey": "0x3229148101a10038d5257ac8c822d00e04c459dbe9dc5e269ba871e7e6181d65d66efe990b4d2bf7c387a9f7e1470495882cb42f592cc8bcebe5ec9c95f2f5f9cf2b89946ecd1ab3732bb2ffb2799ec03a27694054a918762c326cbca825bcc8bb27033e8f15fe2a2e968bec26de452ad07c508b9d9c41c3c6075e1e27fb2fe8"
}
The user registers this licence as follows as a string input:
from rateslib import licence
licence.add_licence('{"company": "Daily Planet", "description": "1 Single User Licence", "expiry": "1900-01-31", "id": "Rateslib Example Key", "name": "Lois Lane", "xkey": "0x3229148101a10038d5257ac8c822d00e04c459dbe9dc5e269ba871e7e6181d65d66efe990b4d2bf7c387a9f7e1470495882cb42f592cc8bcebe5ec9c95f2f5f9cf2b89946ecd1ab3732bb2ffb2799ec03a27694054a918762c326cbca825bcc8bb27033e8f15fe2a2e968bec26de452ad07c508b9d9c41c3c6075e1e27fb2fe8"}')
# > License saved at ../Library/Application Support/rateslib/rateslib_licence.txt
A licence can be removed using:
licence.remove_licence()
For virtual environments or network servers you can alternatively store the licence as a string environment variable under the name ‘RATESLIB_LICENCE’.
The following JSON licence key is distributed to a user by email:
{
"company": "Daily Planet",
"description": "1 Single User Licence",
"expiry": "1900-01-31",
"id": "Rateslib Example Key",
"name": "Lois Lane",
"xkey": "0x3229148101a10038d5257ac8c822d00e04c459dbe9dc5e269ba871e7e6181d65d66efe990b4d2bf7c387a9f7e1470495882cb42f592cc8bcebe5ec9c95f2f5f9cf2b89946ecd1ab3732bb2ffb2799ec03a27694054a918762c326cbca825bcc8bb27033e8f15fe2a2e968bec26de452ad07c508b9d9c41c3c6075e1e27fb2fe8"
}
The file is added as a string to the environment variable directly.
For scripting purposes the licence can be added dynamically to the environment variables provided it is done so before import rateslib.
import os
os.environ["RATESLIB_LICENCE"] = '{"company": "Daily Planet", "description": "1 Single User Licence", "expiry": "1900-01-31", "id": "Rateslib Example Key", "name": "Lois Lane", "xkey": "0x3229148101a10038d5257ac8c822d00e04c459dbe9dc5e269ba871e7e6181d65d66efe990b4d2bf7c387a9f7e1470495882cb42f592cc8bcebe5ec9c95f2f5f9cf2b89946ecd1ab3732bb2ffb2799ec03a27694054a918762c326cbca825bcc8bb27033e8f15fe2a2e968bec26de452ad07c508b9d9c41c3c6075e1e27fb2fe8"}'
from rateslib import *
LICENSE#
Dual Licensing – Source-Available Non-Commercial Licence and Commercial Subscription Licence
Copyright © 2023 Siffrorna Technology Limited All rights reserved.
Licence Acceptance#
By downloading, installing, copying, accessing, or otherwise using this software, you acknowledge that you have read, understood, and agree to be bound by the terms of one of the licences below.
This software is not open source.
Dual-Licensing Overview#
This software is offered under two alternative licences:
Non-Commercial Source-Available Licence (free, default)
Commercial Subscription Licence (paid, required for business use)
You may use this software only if you comply with the terms of one of these licences.
1. Non-Commercial Source-Available Licence#
(Personal and Educational Use Only)
1.1 Grant of Rights
Subject to the restrictions below, permission is granted to view, download, and run the software solely for non-commercial purposes, including:
personal use
academic or educational use
This licence does not grant any right to distribute, modify, or commercially exploit the software.
1.2 Restrictions
You may not, directly or indirectly:
Install or use the software for any purpose in a commercial environment
Sell, license, sublicense, rent, lease, or monetize the software
Distribute or redistribute the software, in source or binary form
Modify, adapt, translate, or create derivative works
Incorporate the software into any other software, library, service, or product
Use the software to provide services to third parties
Circumvent, remove, or obscure copyright or licence notices
For the purposes of this licence, “commercial” means any use primarily intended for or directed toward commercial advantage, monetary compensation, or business operations, whether direct or indirect.
1.3 Ownership
The software is licensed, not sold. All right, title, and interest in and to the software remain with the copyright holder.
1.4 Termination
Any violation of this licence automatically terminates the rights granted herein. Upon termination, you must immediately cease all use of the software and delete all copies in your possession or control.
2. Commercial Subscription Licence#
(Required for Business or Revenue-Generating Use)
Any use of the software in a commercial, professional, or revenue-generating context requires a valid Commercial Subscription Licence.
A Commercial Subscription Licence may permit, subject to separate written terms:
Commercial and internal business use
Deployment in production environments
Integration with proprietary or open-source systems
Modification and derivative works
Distribution as part of a product or service
Commercial licences are offered under separate written terms and are typically provided on a subscription basis.
3. No Implied Rights#
Except as expressly granted in writing, no rights are granted under this licence, whether by implication, estoppel, or otherwise.
No patent, trademark, or other intellectual property rights are granted under the Non-Commercial Source-Available Licence.
4. Disclaimer of Warranty#
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
5. Limitation of Liability#
TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM OR IN CONNECTION WITH THE USE OF THE SOFTWARE.
6. Governing Law#
This licence and any dispute arising out of or in connection with it shall be governed by and construed in accordance with the laws of England and Wales, excluding its conflict of law principles.
Nothing in this section limits the copyright holder’s right to seek injunctive or equitable relief in any jurisdiction.
7. Severability#
If any provision of this licence is held to be invalid, illegal, or unenforceable by a court of competent jurisdiction, the remaining provisions shall remain in full force and effect.
8. No Waiver#
Failure to enforce any provision of this licence shall not constitute a waiver of future enforcement of that or any other provision.
9. Language#
This licence is written in English. Any translations are provided for convenience only. In the event of any inconsistency or dispute, the English version shall prevail.