From 43dd11a11e8cd05798037e7bb72c241240f81787 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 9 Aug 2020 11:04:17 +0200 Subject: [PATCH] Bootstrap generated rpc layer --- .gitignore | 10 + CHANGELOG.md | 3 + LICENSE | 674 +++++++ README.md | 15 + hyperspace-rpc/__init__.py | 1 + hyperspace-rpc/hrpc.proto | 14 + hyperspace-rpc/schema.proto | 283 +++ hyperspace-rpc/schema_grpc.py | 732 +++++++ hyperspace-rpc/schema_pb2.py | 3491 +++++++++++++++++++++++++++++++++ poetry.lock | 622 ++++++ pyproject.toml | 70 + 11 files changed, 5915 insertions(+) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 hyperspace-rpc/__init__.py create mode 100644 hyperspace-rpc/hrpc.proto create mode 100644 hyperspace-rpc/schema.proto create mode 100644 hyperspace-rpc/schema_grpc.py create mode 100644 hyperspace-rpc/schema_pb2.py create mode 100644 poetry.lock create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ec03ce --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.egg-info/ +*.pyc +.coverage +.eggs/ +.mypy_cache/ +.tox/ +__pycache__ +build/ +dist/ +pip-wheel-metadata/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a2d41e7 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# hyperspace-rpc 0.0.1a1 (2020-08-09) + +- The first alpha development release is made! diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b087af --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# hyperspace-rpc + +## Raw RPC layer for Hyperspace + +## Install + +```sh +$ pip install hyperspace-rpc +``` + +## Example + +```python +print("TODO") +``` diff --git a/hyperspace-rpc/__init__.py b/hyperspace-rpc/__init__.py new file mode 100644 index 0000000..36d0f49 --- /dev/null +++ b/hyperspace-rpc/__init__.py @@ -0,0 +1 @@ +"""hyperspace-rpc module.""" diff --git a/hyperspace-rpc/hrpc.proto b/hyperspace-rpc/hrpc.proto new file mode 100644 index 0000000..7ae0104 --- /dev/null +++ b/hyperspace-rpc/hrpc.proto @@ -0,0 +1,14 @@ +syntax = "proto2"; + +package hrpc; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.ServiceOptions { + optional uint32 service = 50000; +} +extend google.protobuf.MethodOptions { + optional uint32 method = 50001; +} + +message Void {} diff --git a/hyperspace-rpc/schema.proto b/hyperspace-rpc/schema.proto new file mode 100644 index 0000000..6b6f6eb --- /dev/null +++ b/hyperspace-rpc/schema.proto @@ -0,0 +1,283 @@ +syntax = "proto2"; + +package hyperspace; +import "hrpc.proto"; + +// General Structs +message Peer { + required bytes remotePublicKey = 1; + required string remoteAddress = 2; + required string type = 3; +} + +// Hyperspace Methods +message HyperspaceStatusResponse { + required string apiVersion = 1; + optional bool holepunchable = 2; + optional string remoteAddress = 3; +} + +// Corestore Methods + +message OpenRequest { + required uint32 id = 1; + optional bytes key = 2; + optional string name = 3; + optional bool weak = 4; +} + +message OpenResponse { + required bytes key = 1; + required uint64 length = 2; + required uint64 byteLength = 3; + required bool writable = 4; + repeated Peer peers = 5; +} + +// Corestore Events + +message FeedEvent { + required bytes key = 1; +} + +// Networking Methods + +message OpenNetworkResponse { + required bytes publicKey = 1; + repeated Peer peers = 2; +} + +message NetworkStatus { + required bytes discoveryKey = 1; + optional bool announce = 2; + optional bool lookup = 3; + optional bool remember = 4; +} + +message ConfigureNetworkRequest { + required NetworkStatus configuration = 1; + optional bool flush = 2; + optional bytes copyFrom = 3; + optional bool overwrite = 4 [default = true]; +} + +message NetworkStatusRequest { + required bytes discoveryKey = 1; +} + +message NetworkStatusResponse { + optional NetworkStatus status = 1; +} + +message AllNetworkStatusesResponse { + repeated NetworkStatus statuses = 1; +} + +message RegisterNetworkExtensionRequest { + required uint64 resourceId = 1; + required string name = 2; +} + +message NetworkExtensionMessage { + required uint64 id = 1; + required uint64 resourceId = 2; + optional bytes remotePublicKey = 3; + required bytes data = 4; +} + +// Hypercore Methods + +message CloseRequest { + required uint32 id = 1; +} + +message GetRequest { + required uint32 id = 1; + required uint64 seq = 2; + required uint64 resourceId = 3; + optional bool wait = 4 [default = true]; + optional bool ifAvailable = 5 [default = true]; + optional uint64 onWaitId = 6; +} +message GetResponse { + optional bytes block = 1; +} + +message AppendRequest { + required uint32 id = 1; + repeated bytes blocks = 2; +} +message AppendResponse { + required uint64 length = 1; + required uint64 byteLength = 2; + required uint64 seq = 3; +} + +message UpdateRequest { + required uint32 id = 1; + optional uint64 minLength = 2; + optional bool ifAvailable = 3 [default = true]; + optional bool hash = 4 [default = true]; +} + +message SeekRequest { + required uint32 id = 1; + required uint64 byteOffset = 2; + optional uint64 start = 3; + optional uint64 end = 4; + optional bool wait = 5 [default = true]; + optional bool ifAvailable = 6 [default = true]; +} +message SeekResponse { + required uint64 seq = 1; + required uint64 blockOffset = 2; +} + +message HasRequest { + required uint32 id = 1; + required uint64 seq = 2; +} +message HasResponse { + required bool has = 1; +} + +message CancelRequest { + required uint64 id = 1; + required uint64 resourceId = 2; +} + +message DownloadRequest { + required uint64 id = 1; + required uint64 resourceId = 2; + optional uint64 start = 3; + optional uint64 end = 4; + repeated uint64 blocks = 5; + optional bool linear = 6; +} + +message DownloadedRequest { + required uint64 id = 1; + optional uint64 start = 2; + optional uint64 end = 3; +} + +message DownloadedResponse { + required uint64 bytes = 1; +} + +message UndownloadRequest { + required uint64 id = 1; + required uint64 resourceId = 2; +} + +message LockRequest { + required uint64 id = 1; +} + + +// Hypercore Events + +message AppendEvent { + required uint64 id = 1; + required uint64 length = 2; + required uint64 byteLength = 3; +} + +message PeerEvent { + required uint64 id = 1; + required Peer peer = 2; +} + +message CloseEvent { + required uint64 id = 1; +} + +message WaitEvent { + required uint64 id = 1; + required uint64 onWaitId = 2; +} + +// Extension Methods + +message RegisterExtensionRequest { + required uint64 id = 1; + required uint64 resourceId = 2; + required string name = 3; +} + +message UnregisterExtensionRequest { + required uint64 id = 1; + required uint64 resourceId = 2; +} + +message ExtensionMessage { + required uint64 id = 1; + required uint64 resourceId = 2; + optional bytes remotePublicKey = 3; + required bytes data = 4; +} + +service Hyperspace { + option (hrpc.service) = 1; + + // Methods + rpc Status (hrpc.Void) returns (HyperspaceStatusResponse) { option (hrpc.method) = 1; } +} + +service Corestore { + option (hrpc.service) = 2; + + // Methods + rpc Open (OpenRequest) returns (OpenResponse) { option (hrpc.method) = 1; } + + // Events + rpc OnFeed (FeedEvent) returns (hrpc.Void) { option (hrpc.method) = 2; } +} + +service Hypercore { + option (hrpc.service) = 3; + + // Methods + rpc Get (GetRequest) returns (GetResponse) { option (hrpc.method) = 1; } + rpc Append (AppendRequest) returns (AppendResponse) { option (hrpc.method) = 2; } + rpc Update (UpdateRequest) returns (hrpc.Void) { option (hrpc.method) = 3; } + rpc Seek (SeekRequest) returns (SeekResponse) { option (hrpc.method) = 4; } + rpc Has (HasRequest) returns (HasResponse) { option (hrpc.method) = 5; } + rpc Cancel (CancelRequest) returns (hrpc.Void) { option (hrpc.method) = 6; } + rpc Download (DownloadRequest) returns (hrpc.Void) { option (hrpc.method) = 7; } + rpc Downloaded (DownloadedRequest) returns (DownloadedResponse) { option (hrpc.method) = 8; } + rpc Undownload (UndownloadRequest) returns (hrpc.Void) { option (hrpc.method) = 9; } + rpc Close (CloseRequest) returns (hrpc.Void) { option (hrpc.method) = 10; } + rpc RegisterExtension (RegisterExtensionRequest) returns (hrpc.Void) { option (hrpc.method) = 11; } + rpc UnregisterExtension (UnregisterExtensionRequest) returns (hrpc.Void) { option (hrpc.method) = 12; } + rpc SendExtension (ExtensionMessage) returns (hrpc.Void) { option (hrpc.method) = 13; } + + rpc AcquireLock (LockRequest) returns (hrpc.Void) { option (hrpc.method) = 14; } + rpc ReleaseLock (LockRequest) returns (hrpc.Void) { option (hrpc.method) = 15; } + + // Events + rpc OnAppend (AppendEvent) returns (hrpc.Void) { option (hrpc.method) = 16; } + rpc OnClose (CloseEvent) returns (hrpc.Void) { option (hrpc.method) = 17; } + rpc OnPeerOpen (PeerEvent) returns (hrpc.Void) { option (hrpc.method) = 18; } + rpc OnPeerRemove (PeerEvent) returns (hrpc.Void) { option (hrpc.method) = 19; } + rpc OnExtension (ExtensionMessage) returns (hrpc.Void) { option (hrpc.method) = 20; } + rpc OnWait (WaitEvent) returns (hrpc.Void) { option (hrpc.method) = 21; } +} + +service Network { + option (hrpc.service) = 4; + + // Methods + rpc Open (hrpc.Void) returns (OpenNetworkResponse) { option (hrpc.method) = 1; } + rpc Configure (ConfigureNetworkRequest) returns (NetworkStatusResponse) { option (hrpc.method) = 2; } + rpc Status (NetworkStatusRequest) returns (NetworkStatusResponse) { option (hrpc.method) = 3; } + rpc AllStatuses (hrpc.Void) returns (AllNetworkStatusesResponse) { option (hrpc.method) = 4; } + rpc RegisterExtension (RegisterExtensionRequest) returns (hrpc.Void) { option (hrpc.method) = 5; } + rpc UnregisterExtension (UnregisterExtensionRequest) returns (hrpc.Void) { option (hrpc.method) = 6; } + rpc SendExtension (ExtensionMessage) returns (hrpc.Void) { option (hrpc.method) = 7; } + + // Events + rpc OnPeerAdd (PeerEvent) returns (hrpc.Void) { option (hrpc.method) = 8; } + rpc OnPeerRemove (PeerEvent) returns (hrpc.Void) { option (hrpc.method) = 9; } + rpc OnExtension (ExtensionMessage) returns (hrpc.Void) { option (hrpc.method) = 10; } +} diff --git a/hyperspace-rpc/schema_grpc.py b/hyperspace-rpc/schema_grpc.py new file mode 100644 index 0000000..32d2488 --- /dev/null +++ b/hyperspace-rpc/schema_grpc.py @@ -0,0 +1,732 @@ +import hrpc_pb2 as hrpc__pb2 +import purerpc + +import schema_pb2 as schema__pb2 + + +class HyperspaceServicer(purerpc.Servicer): + async def Status(self, input_message): + raise NotImplementedError() + + @property + def service(self) -> purerpc.Service: + service_obj = purerpc.Service("hyperspace.Hyperspace") + service_obj.add_method( + "Status", + self.Status, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.HyperspaceStatusResponse, + ), + ) + return service_obj + + +class HyperspaceStub: + def __init__(self, channel): + self._client = purerpc.Client("hyperspace.Hyperspace", channel) + self.Status = self._client.get_method_stub( + "Status", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.HyperspaceStatusResponse, + ), + ) + + +class CorestoreServicer(purerpc.Servicer): + async def Open(self, input_message): + raise NotImplementedError() + + async def OnFeed(self, input_message): + raise NotImplementedError() + + @property + def service(self) -> purerpc.Service: + service_obj = purerpc.Service("hyperspace.Corestore") + service_obj.add_method( + "Open", + self.Open, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.OpenRequest, + schema__pb2.OpenResponse, + ), + ) + service_obj.add_method( + "OnFeed", + self.OnFeed, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.FeedEvent, + hrpc__pb2.Void, + ), + ) + return service_obj + + +class CorestoreStub: + def __init__(self, channel): + self._client = purerpc.Client("hyperspace.Corestore", channel) + self.Open = self._client.get_method_stub( + "Open", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.OpenRequest, + schema__pb2.OpenResponse, + ), + ) + self.OnFeed = self._client.get_method_stub( + "OnFeed", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.FeedEvent, + hrpc__pb2.Void, + ), + ) + + +class HypercoreServicer(purerpc.Servicer): + async def Get(self, input_message): + raise NotImplementedError() + + async def Append(self, input_message): + raise NotImplementedError() + + async def Update(self, input_message): + raise NotImplementedError() + + async def Seek(self, input_message): + raise NotImplementedError() + + async def Has(self, input_message): + raise NotImplementedError() + + async def Cancel(self, input_message): + raise NotImplementedError() + + async def Download(self, input_message): + raise NotImplementedError() + + async def Downloaded(self, input_message): + raise NotImplementedError() + + async def Undownload(self, input_message): + raise NotImplementedError() + + async def Close(self, input_message): + raise NotImplementedError() + + async def RegisterExtension(self, input_message): + raise NotImplementedError() + + async def UnregisterExtension(self, input_message): + raise NotImplementedError() + + async def SendExtension(self, input_message): + raise NotImplementedError() + + async def AcquireLock(self, input_message): + raise NotImplementedError() + + async def ReleaseLock(self, input_message): + raise NotImplementedError() + + async def OnAppend(self, input_message): + raise NotImplementedError() + + async def OnClose(self, input_message): + raise NotImplementedError() + + async def OnPeerOpen(self, input_message): + raise NotImplementedError() + + async def OnPeerRemove(self, input_message): + raise NotImplementedError() + + async def OnExtension(self, input_message): + raise NotImplementedError() + + async def OnWait(self, input_message): + raise NotImplementedError() + + @property + def service(self) -> purerpc.Service: + service_obj = purerpc.Service("hyperspace.Hypercore") + service_obj.add_method( + "Get", + self.Get, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.GetRequest, + schema__pb2.GetResponse, + ), + ) + service_obj.add_method( + "Append", + self.Append, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.AppendRequest, + schema__pb2.AppendResponse, + ), + ) + service_obj.add_method( + "Update", + self.Update, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UpdateRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "Seek", + self.Seek, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.SeekRequest, + schema__pb2.SeekResponse, + ), + ) + service_obj.add_method( + "Has", + self.Has, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.HasRequest, + schema__pb2.HasResponse, + ), + ) + service_obj.add_method( + "Cancel", + self.Cancel, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CancelRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "Download", + self.Download, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.DownloadRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "Downloaded", + self.Downloaded, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.DownloadedRequest, + schema__pb2.DownloadedResponse, + ), + ) + service_obj.add_method( + "Undownload", + self.Undownload, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UndownloadRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "Close", + self.Close, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CloseRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "RegisterExtension", + self.RegisterExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.RegisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "UnregisterExtension", + self.UnregisterExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UnregisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "SendExtension", + self.SendExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "AcquireLock", + self.AcquireLock, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.LockRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "ReleaseLock", + self.ReleaseLock, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.LockRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnAppend", + self.OnAppend, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.AppendEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnClose", + self.OnClose, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CloseEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnPeerOpen", + self.OnPeerOpen, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnPeerRemove", + self.OnPeerRemove, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnExtension", + self.OnExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnWait", + self.OnWait, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.WaitEvent, + hrpc__pb2.Void, + ), + ) + return service_obj + + +class HypercoreStub: + def __init__(self, channel): + self._client = purerpc.Client("hyperspace.Hypercore", channel) + self.Get = self._client.get_method_stub( + "Get", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.GetRequest, + schema__pb2.GetResponse, + ), + ) + self.Append = self._client.get_method_stub( + "Append", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.AppendRequest, + schema__pb2.AppendResponse, + ), + ) + self.Update = self._client.get_method_stub( + "Update", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UpdateRequest, + hrpc__pb2.Void, + ), + ) + self.Seek = self._client.get_method_stub( + "Seek", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.SeekRequest, + schema__pb2.SeekResponse, + ), + ) + self.Has = self._client.get_method_stub( + "Has", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.HasRequest, + schema__pb2.HasResponse, + ), + ) + self.Cancel = self._client.get_method_stub( + "Cancel", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CancelRequest, + hrpc__pb2.Void, + ), + ) + self.Download = self._client.get_method_stub( + "Download", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.DownloadRequest, + hrpc__pb2.Void, + ), + ) + self.Downloaded = self._client.get_method_stub( + "Downloaded", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.DownloadedRequest, + schema__pb2.DownloadedResponse, + ), + ) + self.Undownload = self._client.get_method_stub( + "Undownload", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UndownloadRequest, + hrpc__pb2.Void, + ), + ) + self.Close = self._client.get_method_stub( + "Close", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CloseRequest, + hrpc__pb2.Void, + ), + ) + self.RegisterExtension = self._client.get_method_stub( + "RegisterExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.RegisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + self.UnregisterExtension = self._client.get_method_stub( + "UnregisterExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UnregisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + self.SendExtension = self._client.get_method_stub( + "SendExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + self.AcquireLock = self._client.get_method_stub( + "AcquireLock", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.LockRequest, + hrpc__pb2.Void, + ), + ) + self.ReleaseLock = self._client.get_method_stub( + "ReleaseLock", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.LockRequest, + hrpc__pb2.Void, + ), + ) + self.OnAppend = self._client.get_method_stub( + "OnAppend", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.AppendEvent, + hrpc__pb2.Void, + ), + ) + self.OnClose = self._client.get_method_stub( + "OnClose", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.CloseEvent, + hrpc__pb2.Void, + ), + ) + self.OnPeerOpen = self._client.get_method_stub( + "OnPeerOpen", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + self.OnPeerRemove = self._client.get_method_stub( + "OnPeerRemove", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + self.OnExtension = self._client.get_method_stub( + "OnExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + self.OnWait = self._client.get_method_stub( + "OnWait", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.WaitEvent, + hrpc__pb2.Void, + ), + ) + + +class NetworkServicer(purerpc.Servicer): + async def Open(self, input_message): + raise NotImplementedError() + + async def Configure(self, input_message): + raise NotImplementedError() + + async def Status(self, input_message): + raise NotImplementedError() + + async def AllStatuses(self, input_message): + raise NotImplementedError() + + async def RegisterExtension(self, input_message): + raise NotImplementedError() + + async def UnregisterExtension(self, input_message): + raise NotImplementedError() + + async def SendExtension(self, input_message): + raise NotImplementedError() + + async def OnPeerAdd(self, input_message): + raise NotImplementedError() + + async def OnPeerRemove(self, input_message): + raise NotImplementedError() + + async def OnExtension(self, input_message): + raise NotImplementedError() + + @property + def service(self) -> purerpc.Service: + service_obj = purerpc.Service("hyperspace.Network") + service_obj.add_method( + "Open", + self.Open, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.OpenNetworkResponse, + ), + ) + service_obj.add_method( + "Configure", + self.Configure, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ConfigureNetworkRequest, + schema__pb2.NetworkStatusResponse, + ), + ) + service_obj.add_method( + "Status", + self.Status, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.NetworkStatusRequest, + schema__pb2.NetworkStatusResponse, + ), + ) + service_obj.add_method( + "AllStatuses", + self.AllStatuses, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.AllNetworkStatusesResponse, + ), + ) + service_obj.add_method( + "RegisterExtension", + self.RegisterExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.RegisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "UnregisterExtension", + self.UnregisterExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UnregisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "SendExtension", + self.SendExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnPeerAdd", + self.OnPeerAdd, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnPeerRemove", + self.OnPeerRemove, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + service_obj.add_method( + "OnExtension", + self.OnExtension, + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + return service_obj + + +class NetworkStub: + def __init__(self, channel): + self._client = purerpc.Client("hyperspace.Network", channel) + self.Open = self._client.get_method_stub( + "Open", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.OpenNetworkResponse, + ), + ) + self.Configure = self._client.get_method_stub( + "Configure", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ConfigureNetworkRequest, + schema__pb2.NetworkStatusResponse, + ), + ) + self.Status = self._client.get_method_stub( + "Status", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.NetworkStatusRequest, + schema__pb2.NetworkStatusResponse, + ), + ) + self.AllStatuses = self._client.get_method_stub( + "AllStatuses", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + hrpc__pb2.Void, + schema__pb2.AllNetworkStatusesResponse, + ), + ) + self.RegisterExtension = self._client.get_method_stub( + "RegisterExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.RegisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + self.UnregisterExtension = self._client.get_method_stub( + "UnregisterExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.UnregisterExtensionRequest, + hrpc__pb2.Void, + ), + ) + self.SendExtension = self._client.get_method_stub( + "SendExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) + self.OnPeerAdd = self._client.get_method_stub( + "OnPeerAdd", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + self.OnPeerRemove = self._client.get_method_stub( + "OnPeerRemove", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.PeerEvent, + hrpc__pb2.Void, + ), + ) + self.OnExtension = self._client.get_method_stub( + "OnExtension", + purerpc.RPCSignature( + purerpc.Cardinality.UNARY_UNARY, + schema__pb2.ExtensionMessage, + hrpc__pb2.Void, + ), + ) diff --git a/hyperspace-rpc/schema_pb2.py b/hyperspace-rpc/schema_pb2.py new file mode 100644 index 0000000..31c1e78 --- /dev/null +++ b/hyperspace-rpc/schema_pb2.py @@ -0,0 +1,3491 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: schema.proto +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import hrpc_pb2 as hrpc__pb2 + +DESCRIPTOR = _descriptor.FileDescriptor( + name="schema.proto", + package="hyperspace", + syntax="proto2", + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x0cschema.proto\x12\nhyperspace\x1a\nhrpc.proto"D\n\x04Peer\x12\x17\n\x0fremotePublicKey\x18\x01 \x02(\x0c\x12\x15\n\rremoteAddress\x18\x02 \x02(\t\x12\x0c\n\x04type\x18\x03 \x02(\t"\\\n\x18HyperspaceStatusResponse\x12\x12\n\napiVersion\x18\x01 \x02(\t\x12\x15\n\rholepunchable\x18\x02 \x01(\x08\x12\x15\n\rremoteAddress\x18\x03 \x01(\t"B\n\x0bOpenRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0c\n\x04weak\x18\x04 \x01(\x08"r\n\x0cOpenResponse\x12\x0b\n\x03key\x18\x01 \x02(\x0c\x12\x0e\n\x06length\x18\x02 \x02(\x04\x12\x12\n\nbyteLength\x18\x03 \x02(\x04\x12\x10\n\x08writable\x18\x04 \x02(\x08\x12\x1f\n\x05peers\x18\x05 \x03(\x0b\x32\x10.hyperspace.Peer"\x18\n\tFeedEvent\x12\x0b\n\x03key\x18\x01 \x02(\x0c"I\n\x13OpenNetworkResponse\x12\x11\n\tpublicKey\x18\x01 \x02(\x0c\x12\x1f\n\x05peers\x18\x02 \x03(\x0b\x32\x10.hyperspace.Peer"Y\n\rNetworkStatus\x12\x14\n\x0c\x64iscoveryKey\x18\x01 \x02(\x0c\x12\x10\n\x08\x61nnounce\x18\x02 \x01(\x08\x12\x0e\n\x06lookup\x18\x03 \x01(\x08\x12\x10\n\x08remember\x18\x04 \x01(\x08"\x85\x01\n\x17\x43onfigureNetworkRequest\x12\x30\n\rconfiguration\x18\x01 \x02(\x0b\x32\x19.hyperspace.NetworkStatus\x12\r\n\x05\x66lush\x18\x02 \x01(\x08\x12\x10\n\x08\x63opyFrom\x18\x03 \x01(\x0c\x12\x17\n\toverwrite\x18\x04 \x01(\x08:\x04true",\n\x14NetworkStatusRequest\x12\x14\n\x0c\x64iscoveryKey\x18\x01 \x02(\x0c"B\n\x15NetworkStatusResponse\x12)\n\x06status\x18\x01 \x01(\x0b\x32\x19.hyperspace.NetworkStatus"I\n\x1a\x41llNetworkStatusesResponse\x12+\n\x08statuses\x18\x01 \x03(\x0b\x32\x19.hyperspace.NetworkStatus"C\n\x1fRegisterNetworkExtensionRequest\x12\x12\n\nresourceId\x18\x01 \x02(\x04\x12\x0c\n\x04name\x18\x02 \x02(\t"`\n\x17NetworkExtensionMessage\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04\x12\x17\n\x0fremotePublicKey\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x02(\x0c"\x1a\n\x0c\x43loseRequest\x12\n\n\x02id\x18\x01 \x02(\r"z\n\nGetRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x0b\n\x03seq\x18\x02 \x02(\x04\x12\x12\n\nresourceId\x18\x03 \x02(\x04\x12\x12\n\x04wait\x18\x04 \x01(\x08:\x04true\x12\x19\n\x0bifAvailable\x18\x05 \x01(\x08:\x04true\x12\x10\n\x08onWaitId\x18\x06 \x01(\x04"\x1c\n\x0bGetResponse\x12\r\n\x05\x62lock\x18\x01 \x01(\x0c"+\n\rAppendRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x0e\n\x06\x62locks\x18\x02 \x03(\x0c"A\n\x0e\x41ppendResponse\x12\x0e\n\x06length\x18\x01 \x02(\x04\x12\x12\n\nbyteLength\x18\x02 \x02(\x04\x12\x0b\n\x03seq\x18\x03 \x02(\x04"]\n\rUpdateRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x11\n\tminLength\x18\x02 \x01(\x04\x12\x19\n\x0bifAvailable\x18\x03 \x01(\x08:\x04true\x12\x12\n\x04hash\x18\x04 \x01(\x08:\x04true"x\n\x0bSeekRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x12\n\nbyteOffset\x18\x02 \x02(\x04\x12\r\n\x05start\x18\x03 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x04\x12\x12\n\x04wait\x18\x05 \x01(\x08:\x04true\x12\x19\n\x0bifAvailable\x18\x06 \x01(\x08:\x04true"0\n\x0cSeekResponse\x12\x0b\n\x03seq\x18\x01 \x02(\x04\x12\x13\n\x0b\x62lockOffset\x18\x02 \x02(\x04"%\n\nHasRequest\x12\n\n\x02id\x18\x01 \x02(\r\x12\x0b\n\x03seq\x18\x02 \x02(\x04"\x1a\n\x0bHasResponse\x12\x0b\n\x03has\x18\x01 \x02(\x08"/\n\rCancelRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04"m\n\x0f\x44ownloadRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04\x12\r\n\x05start\x18\x03 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x04\x12\x0e\n\x06\x62locks\x18\x05 \x03(\x04\x12\x0e\n\x06linear\x18\x06 \x01(\x08";\n\x11\x44ownloadedRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\r\n\x05start\x18\x02 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x03 \x01(\x04"#\n\x12\x44ownloadedResponse\x12\r\n\x05\x62ytes\x18\x01 \x02(\x04"3\n\x11UndownloadRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04"\x19\n\x0bLockRequest\x12\n\n\x02id\x18\x01 \x02(\x04"=\n\x0b\x41ppendEvent\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x0e\n\x06length\x18\x02 \x02(\x04\x12\x12\n\nbyteLength\x18\x03 \x02(\x04"7\n\tPeerEvent\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x1e\n\x04peer\x18\x02 \x02(\x0b\x32\x10.hyperspace.Peer"\x18\n\nCloseEvent\x12\n\n\x02id\x18\x01 \x02(\x04")\n\tWaitEvent\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x10\n\x08onWaitId\x18\x02 \x02(\x04"H\n\x18RegisterExtensionRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04\x12\x0c\n\x04name\x18\x03 \x02(\t"<\n\x1aUnregisterExtensionRequest\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04"Y\n\x10\x45xtensionMessage\x12\n\n\x02id\x18\x01 \x02(\x04\x12\x12\n\nresourceId\x18\x02 \x02(\x04\x12\x17\n\x0fremotePublicKey\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x02(\x0c\x32T\n\nHyperspace\x12@\n\x06Status\x12\n.hrpc.Void\x1a$.hyperspace.HyperspaceStatusResponse"\x04\x88\xb5\x18\x01\x1a\x04\x80\xb5\x18\x01\x32\x85\x01\n\tCorestore\x12?\n\x04Open\x12\x17.hyperspace.OpenRequest\x1a\x18.hyperspace.OpenResponse"\x04\x88\xb5\x18\x01\x12\x31\n\x06OnFeed\x12\x15.hyperspace.FeedEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x02\x1a\x04\x80\xb5\x18\x02\x32\xa6\n\n\tHypercore\x12<\n\x03Get\x12\x16.hyperspace.GetRequest\x1a\x17.hyperspace.GetResponse"\x04\x88\xb5\x18\x01\x12\x45\n\x06\x41ppend\x12\x19.hyperspace.AppendRequest\x1a\x1a.hyperspace.AppendResponse"\x04\x88\xb5\x18\x02\x12\x35\n\x06Update\x12\x19.hyperspace.UpdateRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x03\x12?\n\x04Seek\x12\x17.hyperspace.SeekRequest\x1a\x18.hyperspace.SeekResponse"\x04\x88\xb5\x18\x04\x12<\n\x03Has\x12\x16.hyperspace.HasRequest\x1a\x17.hyperspace.HasResponse"\x04\x88\xb5\x18\x05\x12\x35\n\x06\x43\x61ncel\x12\x19.hyperspace.CancelRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x06\x12\x39\n\x08\x44ownload\x12\x1b.hyperspace.DownloadRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x07\x12Q\n\nDownloaded\x12\x1d.hyperspace.DownloadedRequest\x1a\x1e.hyperspace.DownloadedResponse"\x04\x88\xb5\x18\x08\x12=\n\nUndownload\x12\x1d.hyperspace.UndownloadRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\t\x12\x33\n\x05\x43lose\x12\x18.hyperspace.CloseRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\n\x12K\n\x11RegisterExtension\x12$.hyperspace.RegisterExtensionRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x0b\x12O\n\x13UnregisterExtension\x12&.hyperspace.UnregisterExtensionRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x0c\x12?\n\rSendExtension\x12\x1c.hyperspace.ExtensionMessage\x1a\n.hrpc.Void"\x04\x88\xb5\x18\r\x12\x38\n\x0b\x41\x63quireLock\x12\x17.hyperspace.LockRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x0e\x12\x38\n\x0bReleaseLock\x12\x17.hyperspace.LockRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x0f\x12\x35\n\x08OnAppend\x12\x17.hyperspace.AppendEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x10\x12\x33\n\x07OnClose\x12\x16.hyperspace.CloseEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x11\x12\x35\n\nOnPeerOpen\x12\x15.hyperspace.PeerEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x12\x12\x37\n\x0cOnPeerRemove\x12\x15.hyperspace.PeerEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x13\x12=\n\x0bOnExtension\x12\x1c.hyperspace.ExtensionMessage\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x14\x12\x31\n\x06OnWait\x12\x15.hyperspace.WaitEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x15\x1a\x04\x80\xb5\x18\x03\x32\xd0\x05\n\x07Network\x12\x39\n\x04Open\x12\n.hrpc.Void\x1a\x1f.hyperspace.OpenNetworkResponse"\x04\x88\xb5\x18\x01\x12Y\n\tConfigure\x12#.hyperspace.ConfigureNetworkRequest\x1a!.hyperspace.NetworkStatusResponse"\x04\x88\xb5\x18\x02\x12S\n\x06Status\x12 .hyperspace.NetworkStatusRequest\x1a!.hyperspace.NetworkStatusResponse"\x04\x88\xb5\x18\x03\x12G\n\x0b\x41llStatuses\x12\n.hrpc.Void\x1a&.hyperspace.AllNetworkStatusesResponse"\x04\x88\xb5\x18\x04\x12K\n\x11RegisterExtension\x12$.hyperspace.RegisterExtensionRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x05\x12O\n\x13UnregisterExtension\x12&.hyperspace.UnregisterExtensionRequest\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x06\x12?\n\rSendExtension\x12\x1c.hyperspace.ExtensionMessage\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x07\x12\x34\n\tOnPeerAdd\x12\x15.hyperspace.PeerEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\x08\x12\x37\n\x0cOnPeerRemove\x12\x15.hyperspace.PeerEvent\x1a\n.hrpc.Void"\x04\x88\xb5\x18\t\x12=\n\x0bOnExtension\x12\x1c.hyperspace.ExtensionMessage\x1a\n.hrpc.Void"\x04\x88\xb5\x18\n\x1a\x04\x80\xb5\x18\x04', + dependencies=[hrpc__pb2.DESCRIPTOR,], +) + + +_PEER = _descriptor.Descriptor( + name="Peer", + full_name="hyperspace.Peer", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="remotePublicKey", + full_name="hyperspace.Peer.remotePublicKey", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="remoteAddress", + full_name="hyperspace.Peer.remoteAddress", + index=1, + number=2, + type=9, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="hyperspace.Peer.type", + index=2, + number=3, + type=9, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=40, + serialized_end=108, +) + + +_HYPERSPACESTATUSRESPONSE = _descriptor.Descriptor( + name="HyperspaceStatusResponse", + full_name="hyperspace.HyperspaceStatusResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="apiVersion", + full_name="hyperspace.HyperspaceStatusResponse.apiVersion", + index=0, + number=1, + type=9, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="holepunchable", + full_name="hyperspace.HyperspaceStatusResponse.holepunchable", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="remoteAddress", + full_name="hyperspace.HyperspaceStatusResponse.remoteAddress", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=110, + serialized_end=202, +) + + +_OPENREQUEST = _descriptor.Descriptor( + name="OpenRequest", + full_name="hyperspace.OpenRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.OpenRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="key", + full_name="hyperspace.OpenRequest.key", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="hyperspace.OpenRequest.name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="weak", + full_name="hyperspace.OpenRequest.weak", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=204, + serialized_end=270, +) + + +_OPENRESPONSE = _descriptor.Descriptor( + name="OpenResponse", + full_name="hyperspace.OpenResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="hyperspace.OpenResponse.key", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="length", + full_name="hyperspace.OpenResponse.length", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="byteLength", + full_name="hyperspace.OpenResponse.byteLength", + index=2, + number=3, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="writable", + full_name="hyperspace.OpenResponse.writable", + index=3, + number=4, + type=8, + cpp_type=7, + label=2, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="peers", + full_name="hyperspace.OpenResponse.peers", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=272, + serialized_end=386, +) + + +_FEEDEVENT = _descriptor.Descriptor( + name="FeedEvent", + full_name="hyperspace.FeedEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="hyperspace.FeedEvent.key", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=388, + serialized_end=412, +) + + +_OPENNETWORKRESPONSE = _descriptor.Descriptor( + name="OpenNetworkResponse", + full_name="hyperspace.OpenNetworkResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="publicKey", + full_name="hyperspace.OpenNetworkResponse.publicKey", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="peers", + full_name="hyperspace.OpenNetworkResponse.peers", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=414, + serialized_end=487, +) + + +_NETWORKSTATUS = _descriptor.Descriptor( + name="NetworkStatus", + full_name="hyperspace.NetworkStatus", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="discoveryKey", + full_name="hyperspace.NetworkStatus.discoveryKey", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="announce", + full_name="hyperspace.NetworkStatus.announce", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="lookup", + full_name="hyperspace.NetworkStatus.lookup", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="remember", + full_name="hyperspace.NetworkStatus.remember", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=489, + serialized_end=578, +) + + +_CONFIGURENETWORKREQUEST = _descriptor.Descriptor( + name="ConfigureNetworkRequest", + full_name="hyperspace.ConfigureNetworkRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="configuration", + full_name="hyperspace.ConfigureNetworkRequest.configuration", + index=0, + number=1, + type=11, + cpp_type=10, + label=2, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="flush", + full_name="hyperspace.ConfigureNetworkRequest.flush", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="copyFrom", + full_name="hyperspace.ConfigureNetworkRequest.copyFrom", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="overwrite", + full_name="hyperspace.ConfigureNetworkRequest.overwrite", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=581, + serialized_end=714, +) + + +_NETWORKSTATUSREQUEST = _descriptor.Descriptor( + name="NetworkStatusRequest", + full_name="hyperspace.NetworkStatusRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="discoveryKey", + full_name="hyperspace.NetworkStatusRequest.discoveryKey", + index=0, + number=1, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=716, + serialized_end=760, +) + + +_NETWORKSTATUSRESPONSE = _descriptor.Descriptor( + name="NetworkStatusResponse", + full_name="hyperspace.NetworkStatusResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="status", + full_name="hyperspace.NetworkStatusResponse.status", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=762, + serialized_end=828, +) + + +_ALLNETWORKSTATUSESRESPONSE = _descriptor.Descriptor( + name="AllNetworkStatusesResponse", + full_name="hyperspace.AllNetworkStatusesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="statuses", + full_name="hyperspace.AllNetworkStatusesResponse.statuses", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=830, + serialized_end=903, +) + + +_REGISTERNETWORKEXTENSIONREQUEST = _descriptor.Descriptor( + name="RegisterNetworkExtensionRequest", + full_name="hyperspace.RegisterNetworkExtensionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.RegisterNetworkExtensionRequest.resourceId", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="hyperspace.RegisterNetworkExtensionRequest.name", + index=1, + number=2, + type=9, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=905, + serialized_end=972, +) + + +_NETWORKEXTENSIONMESSAGE = _descriptor.Descriptor( + name="NetworkExtensionMessage", + full_name="hyperspace.NetworkExtensionMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.NetworkExtensionMessage.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.NetworkExtensionMessage.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="remotePublicKey", + full_name="hyperspace.NetworkExtensionMessage.remotePublicKey", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="hyperspace.NetworkExtensionMessage.data", + index=3, + number=4, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=974, + serialized_end=1070, +) + + +_CLOSEREQUEST = _descriptor.Descriptor( + name="CloseRequest", + full_name="hyperspace.CloseRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.CloseRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1072, + serialized_end=1098, +) + + +_GETREQUEST = _descriptor.Descriptor( + name="GetRequest", + full_name="hyperspace.GetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.GetRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="seq", + full_name="hyperspace.GetRequest.seq", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.GetRequest.resourceId", + index=2, + number=3, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="wait", + full_name="hyperspace.GetRequest.wait", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="ifAvailable", + full_name="hyperspace.GetRequest.ifAvailable", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="onWaitId", + full_name="hyperspace.GetRequest.onWaitId", + index=5, + number=6, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1100, + serialized_end=1222, +) + + +_GETRESPONSE = _descriptor.Descriptor( + name="GetResponse", + full_name="hyperspace.GetResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="block", + full_name="hyperspace.GetResponse.block", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1224, + serialized_end=1252, +) + + +_APPENDREQUEST = _descriptor.Descriptor( + name="AppendRequest", + full_name="hyperspace.AppendRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.AppendRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="blocks", + full_name="hyperspace.AppendRequest.blocks", + index=1, + number=2, + type=12, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1254, + serialized_end=1297, +) + + +_APPENDRESPONSE = _descriptor.Descriptor( + name="AppendResponse", + full_name="hyperspace.AppendResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="length", + full_name="hyperspace.AppendResponse.length", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="byteLength", + full_name="hyperspace.AppendResponse.byteLength", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="seq", + full_name="hyperspace.AppendResponse.seq", + index=2, + number=3, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1299, + serialized_end=1364, +) + + +_UPDATEREQUEST = _descriptor.Descriptor( + name="UpdateRequest", + full_name="hyperspace.UpdateRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.UpdateRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="minLength", + full_name="hyperspace.UpdateRequest.minLength", + index=1, + number=2, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="ifAvailable", + full_name="hyperspace.UpdateRequest.ifAvailable", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="hash", + full_name="hyperspace.UpdateRequest.hash", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1366, + serialized_end=1459, +) + + +_SEEKREQUEST = _descriptor.Descriptor( + name="SeekRequest", + full_name="hyperspace.SeekRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.SeekRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="byteOffset", + full_name="hyperspace.SeekRequest.byteOffset", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start", + full_name="hyperspace.SeekRequest.start", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end", + full_name="hyperspace.SeekRequest.end", + index=3, + number=4, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="wait", + full_name="hyperspace.SeekRequest.wait", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="ifAvailable", + full_name="hyperspace.SeekRequest.ifAvailable", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=True, + default_value=True, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1461, + serialized_end=1581, +) + + +_SEEKRESPONSE = _descriptor.Descriptor( + name="SeekResponse", + full_name="hyperspace.SeekResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="seq", + full_name="hyperspace.SeekResponse.seq", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="blockOffset", + full_name="hyperspace.SeekResponse.blockOffset", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1583, + serialized_end=1631, +) + + +_HASREQUEST = _descriptor.Descriptor( + name="HasRequest", + full_name="hyperspace.HasRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.HasRequest.id", + index=0, + number=1, + type=13, + cpp_type=3, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="seq", + full_name="hyperspace.HasRequest.seq", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1633, + serialized_end=1670, +) + + +_HASRESPONSE = _descriptor.Descriptor( + name="HasResponse", + full_name="hyperspace.HasResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="has", + full_name="hyperspace.HasResponse.has", + index=0, + number=1, + type=8, + cpp_type=7, + label=2, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1672, + serialized_end=1698, +) + + +_CANCELREQUEST = _descriptor.Descriptor( + name="CancelRequest", + full_name="hyperspace.CancelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.CancelRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.CancelRequest.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1700, + serialized_end=1747, +) + + +_DOWNLOADREQUEST = _descriptor.Descriptor( + name="DownloadRequest", + full_name="hyperspace.DownloadRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.DownloadRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.DownloadRequest.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start", + full_name="hyperspace.DownloadRequest.start", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end", + full_name="hyperspace.DownloadRequest.end", + index=3, + number=4, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="blocks", + full_name="hyperspace.DownloadRequest.blocks", + index=4, + number=5, + type=4, + cpp_type=4, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="linear", + full_name="hyperspace.DownloadRequest.linear", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1749, + serialized_end=1858, +) + + +_DOWNLOADEDREQUEST = _descriptor.Descriptor( + name="DownloadedRequest", + full_name="hyperspace.DownloadedRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.DownloadedRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="start", + full_name="hyperspace.DownloadedRequest.start", + index=1, + number=2, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="end", + full_name="hyperspace.DownloadedRequest.end", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1860, + serialized_end=1919, +) + + +_DOWNLOADEDRESPONSE = _descriptor.Descriptor( + name="DownloadedResponse", + full_name="hyperspace.DownloadedResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="bytes", + full_name="hyperspace.DownloadedResponse.bytes", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1921, + serialized_end=1956, +) + + +_UNDOWNLOADREQUEST = _descriptor.Descriptor( + name="UndownloadRequest", + full_name="hyperspace.UndownloadRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.UndownloadRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.UndownloadRequest.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=1958, + serialized_end=2009, +) + + +_LOCKREQUEST = _descriptor.Descriptor( + name="LockRequest", + full_name="hyperspace.LockRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.LockRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2011, + serialized_end=2036, +) + + +_APPENDEVENT = _descriptor.Descriptor( + name="AppendEvent", + full_name="hyperspace.AppendEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.AppendEvent.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="length", + full_name="hyperspace.AppendEvent.length", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="byteLength", + full_name="hyperspace.AppendEvent.byteLength", + index=2, + number=3, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2038, + serialized_end=2099, +) + + +_PEEREVENT = _descriptor.Descriptor( + name="PeerEvent", + full_name="hyperspace.PeerEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.PeerEvent.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="peer", + full_name="hyperspace.PeerEvent.peer", + index=1, + number=2, + type=11, + cpp_type=10, + label=2, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2101, + serialized_end=2156, +) + + +_CLOSEEVENT = _descriptor.Descriptor( + name="CloseEvent", + full_name="hyperspace.CloseEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.CloseEvent.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2158, + serialized_end=2182, +) + + +_WAITEVENT = _descriptor.Descriptor( + name="WaitEvent", + full_name="hyperspace.WaitEvent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.WaitEvent.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="onWaitId", + full_name="hyperspace.WaitEvent.onWaitId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2184, + serialized_end=2225, +) + + +_REGISTEREXTENSIONREQUEST = _descriptor.Descriptor( + name="RegisterExtensionRequest", + full_name="hyperspace.RegisterExtensionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.RegisterExtensionRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.RegisterExtensionRequest.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="hyperspace.RegisterExtensionRequest.name", + index=2, + number=3, + type=9, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2227, + serialized_end=2299, +) + + +_UNREGISTEREXTENSIONREQUEST = _descriptor.Descriptor( + name="UnregisterExtensionRequest", + full_name="hyperspace.UnregisterExtensionRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.UnregisterExtensionRequest.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.UnregisterExtensionRequest.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2301, + serialized_end=2361, +) + + +_EXTENSIONMESSAGE = _descriptor.Descriptor( + name="ExtensionMessage", + full_name="hyperspace.ExtensionMessage", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="hyperspace.ExtensionMessage.id", + index=0, + number=1, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="resourceId", + full_name="hyperspace.ExtensionMessage.resourceId", + index=1, + number=2, + type=4, + cpp_type=4, + label=2, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="remotePublicKey", + full_name="hyperspace.ExtensionMessage.remotePublicKey", + index=2, + number=3, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="hyperspace.ExtensionMessage.data", + index=3, + number=4, + type=12, + cpp_type=9, + label=2, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto2", + extension_ranges=[], + oneofs=[], + serialized_start=2363, + serialized_end=2452, +) + +_OPENRESPONSE.fields_by_name["peers"].message_type = _PEER +_OPENNETWORKRESPONSE.fields_by_name["peers"].message_type = _PEER +_CONFIGURENETWORKREQUEST.fields_by_name[ + "configuration" +].message_type = _NETWORKSTATUS +_NETWORKSTATUSRESPONSE.fields_by_name["status"].message_type = _NETWORKSTATUS +_ALLNETWORKSTATUSESRESPONSE.fields_by_name[ + "statuses" +].message_type = _NETWORKSTATUS +_PEEREVENT.fields_by_name["peer"].message_type = _PEER +DESCRIPTOR.message_types_by_name["Peer"] = _PEER +DESCRIPTOR.message_types_by_name[ + "HyperspaceStatusResponse" +] = _HYPERSPACESTATUSRESPONSE +DESCRIPTOR.message_types_by_name["OpenRequest"] = _OPENREQUEST +DESCRIPTOR.message_types_by_name["OpenResponse"] = _OPENRESPONSE +DESCRIPTOR.message_types_by_name["FeedEvent"] = _FEEDEVENT +DESCRIPTOR.message_types_by_name["OpenNetworkResponse"] = _OPENNETWORKRESPONSE +DESCRIPTOR.message_types_by_name["NetworkStatus"] = _NETWORKSTATUS +DESCRIPTOR.message_types_by_name[ + "ConfigureNetworkRequest" +] = _CONFIGURENETWORKREQUEST +DESCRIPTOR.message_types_by_name["NetworkStatusRequest"] = _NETWORKSTATUSREQUEST +DESCRIPTOR.message_types_by_name[ + "NetworkStatusResponse" +] = _NETWORKSTATUSRESPONSE +DESCRIPTOR.message_types_by_name[ + "AllNetworkStatusesResponse" +] = _ALLNETWORKSTATUSESRESPONSE +DESCRIPTOR.message_types_by_name[ + "RegisterNetworkExtensionRequest" +] = _REGISTERNETWORKEXTENSIONREQUEST +DESCRIPTOR.message_types_by_name[ + "NetworkExtensionMessage" +] = _NETWORKEXTENSIONMESSAGE +DESCRIPTOR.message_types_by_name["CloseRequest"] = _CLOSEREQUEST +DESCRIPTOR.message_types_by_name["GetRequest"] = _GETREQUEST +DESCRIPTOR.message_types_by_name["GetResponse"] = _GETRESPONSE +DESCRIPTOR.message_types_by_name["AppendRequest"] = _APPENDREQUEST +DESCRIPTOR.message_types_by_name["AppendResponse"] = _APPENDRESPONSE +DESCRIPTOR.message_types_by_name["UpdateRequest"] = _UPDATEREQUEST +DESCRIPTOR.message_types_by_name["SeekRequest"] = _SEEKREQUEST +DESCRIPTOR.message_types_by_name["SeekResponse"] = _SEEKRESPONSE +DESCRIPTOR.message_types_by_name["HasRequest"] = _HASREQUEST +DESCRIPTOR.message_types_by_name["HasResponse"] = _HASRESPONSE +DESCRIPTOR.message_types_by_name["CancelRequest"] = _CANCELREQUEST +DESCRIPTOR.message_types_by_name["DownloadRequest"] = _DOWNLOADREQUEST +DESCRIPTOR.message_types_by_name["DownloadedRequest"] = _DOWNLOADEDREQUEST +DESCRIPTOR.message_types_by_name["DownloadedResponse"] = _DOWNLOADEDRESPONSE +DESCRIPTOR.message_types_by_name["UndownloadRequest"] = _UNDOWNLOADREQUEST +DESCRIPTOR.message_types_by_name["LockRequest"] = _LOCKREQUEST +DESCRIPTOR.message_types_by_name["AppendEvent"] = _APPENDEVENT +DESCRIPTOR.message_types_by_name["PeerEvent"] = _PEEREVENT +DESCRIPTOR.message_types_by_name["CloseEvent"] = _CLOSEEVENT +DESCRIPTOR.message_types_by_name["WaitEvent"] = _WAITEVENT +DESCRIPTOR.message_types_by_name[ + "RegisterExtensionRequest" +] = _REGISTEREXTENSIONREQUEST +DESCRIPTOR.message_types_by_name[ + "UnregisterExtensionRequest" +] = _UNREGISTEREXTENSIONREQUEST +DESCRIPTOR.message_types_by_name["ExtensionMessage"] = _EXTENSIONMESSAGE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Peer = _reflection.GeneratedProtocolMessageType( + "Peer", + (_message.Message,), + { + "DESCRIPTOR": _PEER, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.Peer) + }, +) +_sym_db.RegisterMessage(Peer) + +HyperspaceStatusResponse = _reflection.GeneratedProtocolMessageType( + "HyperspaceStatusResponse", + (_message.Message,), + { + "DESCRIPTOR": _HYPERSPACESTATUSRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.HyperspaceStatusResponse) + }, +) +_sym_db.RegisterMessage(HyperspaceStatusResponse) + +OpenRequest = _reflection.GeneratedProtocolMessageType( + "OpenRequest", + (_message.Message,), + { + "DESCRIPTOR": _OPENREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.OpenRequest) + }, +) +_sym_db.RegisterMessage(OpenRequest) + +OpenResponse = _reflection.GeneratedProtocolMessageType( + "OpenResponse", + (_message.Message,), + { + "DESCRIPTOR": _OPENRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.OpenResponse) + }, +) +_sym_db.RegisterMessage(OpenResponse) + +FeedEvent = _reflection.GeneratedProtocolMessageType( + "FeedEvent", + (_message.Message,), + { + "DESCRIPTOR": _FEEDEVENT, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.FeedEvent) + }, +) +_sym_db.RegisterMessage(FeedEvent) + +OpenNetworkResponse = _reflection.GeneratedProtocolMessageType( + "OpenNetworkResponse", + (_message.Message,), + { + "DESCRIPTOR": _OPENNETWORKRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.OpenNetworkResponse) + }, +) +_sym_db.RegisterMessage(OpenNetworkResponse) + +NetworkStatus = _reflection.GeneratedProtocolMessageType( + "NetworkStatus", + (_message.Message,), + { + "DESCRIPTOR": _NETWORKSTATUS, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.NetworkStatus) + }, +) +_sym_db.RegisterMessage(NetworkStatus) + +ConfigureNetworkRequest = _reflection.GeneratedProtocolMessageType( + "ConfigureNetworkRequest", + (_message.Message,), + { + "DESCRIPTOR": _CONFIGURENETWORKREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.ConfigureNetworkRequest) + }, +) +_sym_db.RegisterMessage(ConfigureNetworkRequest) + +NetworkStatusRequest = _reflection.GeneratedProtocolMessageType( + "NetworkStatusRequest", + (_message.Message,), + { + "DESCRIPTOR": _NETWORKSTATUSREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.NetworkStatusRequest) + }, +) +_sym_db.RegisterMessage(NetworkStatusRequest) + +NetworkStatusResponse = _reflection.GeneratedProtocolMessageType( + "NetworkStatusResponse", + (_message.Message,), + { + "DESCRIPTOR": _NETWORKSTATUSRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.NetworkStatusResponse) + }, +) +_sym_db.RegisterMessage(NetworkStatusResponse) + +AllNetworkStatusesResponse = _reflection.GeneratedProtocolMessageType( + "AllNetworkStatusesResponse", + (_message.Message,), + { + "DESCRIPTOR": _ALLNETWORKSTATUSESRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.AllNetworkStatusesResponse) + }, +) +_sym_db.RegisterMessage(AllNetworkStatusesResponse) + +RegisterNetworkExtensionRequest = _reflection.GeneratedProtocolMessageType( + "RegisterNetworkExtensionRequest", + (_message.Message,), + { + "DESCRIPTOR": _REGISTERNETWORKEXTENSIONREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.RegisterNetworkExtensionRequest) + }, +) +_sym_db.RegisterMessage(RegisterNetworkExtensionRequest) + +NetworkExtensionMessage = _reflection.GeneratedProtocolMessageType( + "NetworkExtensionMessage", + (_message.Message,), + { + "DESCRIPTOR": _NETWORKEXTENSIONMESSAGE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.NetworkExtensionMessage) + }, +) +_sym_db.RegisterMessage(NetworkExtensionMessage) + +CloseRequest = _reflection.GeneratedProtocolMessageType( + "CloseRequest", + (_message.Message,), + { + "DESCRIPTOR": _CLOSEREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.CloseRequest) + }, +) +_sym_db.RegisterMessage(CloseRequest) + +GetRequest = _reflection.GeneratedProtocolMessageType( + "GetRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.GetRequest) + }, +) +_sym_db.RegisterMessage(GetRequest) + +GetResponse = _reflection.GeneratedProtocolMessageType( + "GetResponse", + (_message.Message,), + { + "DESCRIPTOR": _GETRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.GetResponse) + }, +) +_sym_db.RegisterMessage(GetResponse) + +AppendRequest = _reflection.GeneratedProtocolMessageType( + "AppendRequest", + (_message.Message,), + { + "DESCRIPTOR": _APPENDREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.AppendRequest) + }, +) +_sym_db.RegisterMessage(AppendRequest) + +AppendResponse = _reflection.GeneratedProtocolMessageType( + "AppendResponse", + (_message.Message,), + { + "DESCRIPTOR": _APPENDRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.AppendResponse) + }, +) +_sym_db.RegisterMessage(AppendResponse) + +UpdateRequest = _reflection.GeneratedProtocolMessageType( + "UpdateRequest", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.UpdateRequest) + }, +) +_sym_db.RegisterMessage(UpdateRequest) + +SeekRequest = _reflection.GeneratedProtocolMessageType( + "SeekRequest", + (_message.Message,), + { + "DESCRIPTOR": _SEEKREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.SeekRequest) + }, +) +_sym_db.RegisterMessage(SeekRequest) + +SeekResponse = _reflection.GeneratedProtocolMessageType( + "SeekResponse", + (_message.Message,), + { + "DESCRIPTOR": _SEEKRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.SeekResponse) + }, +) +_sym_db.RegisterMessage(SeekResponse) + +HasRequest = _reflection.GeneratedProtocolMessageType( + "HasRequest", + (_message.Message,), + { + "DESCRIPTOR": _HASREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.HasRequest) + }, +) +_sym_db.RegisterMessage(HasRequest) + +HasResponse = _reflection.GeneratedProtocolMessageType( + "HasResponse", + (_message.Message,), + { + "DESCRIPTOR": _HASRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.HasResponse) + }, +) +_sym_db.RegisterMessage(HasResponse) + +CancelRequest = _reflection.GeneratedProtocolMessageType( + "CancelRequest", + (_message.Message,), + { + "DESCRIPTOR": _CANCELREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.CancelRequest) + }, +) +_sym_db.RegisterMessage(CancelRequest) + +DownloadRequest = _reflection.GeneratedProtocolMessageType( + "DownloadRequest", + (_message.Message,), + { + "DESCRIPTOR": _DOWNLOADREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.DownloadRequest) + }, +) +_sym_db.RegisterMessage(DownloadRequest) + +DownloadedRequest = _reflection.GeneratedProtocolMessageType( + "DownloadedRequest", + (_message.Message,), + { + "DESCRIPTOR": _DOWNLOADEDREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.DownloadedRequest) + }, +) +_sym_db.RegisterMessage(DownloadedRequest) + +DownloadedResponse = _reflection.GeneratedProtocolMessageType( + "DownloadedResponse", + (_message.Message,), + { + "DESCRIPTOR": _DOWNLOADEDRESPONSE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.DownloadedResponse) + }, +) +_sym_db.RegisterMessage(DownloadedResponse) + +UndownloadRequest = _reflection.GeneratedProtocolMessageType( + "UndownloadRequest", + (_message.Message,), + { + "DESCRIPTOR": _UNDOWNLOADREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.UndownloadRequest) + }, +) +_sym_db.RegisterMessage(UndownloadRequest) + +LockRequest = _reflection.GeneratedProtocolMessageType( + "LockRequest", + (_message.Message,), + { + "DESCRIPTOR": _LOCKREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.LockRequest) + }, +) +_sym_db.RegisterMessage(LockRequest) + +AppendEvent = _reflection.GeneratedProtocolMessageType( + "AppendEvent", + (_message.Message,), + { + "DESCRIPTOR": _APPENDEVENT, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.AppendEvent) + }, +) +_sym_db.RegisterMessage(AppendEvent) + +PeerEvent = _reflection.GeneratedProtocolMessageType( + "PeerEvent", + (_message.Message,), + { + "DESCRIPTOR": _PEEREVENT, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.PeerEvent) + }, +) +_sym_db.RegisterMessage(PeerEvent) + +CloseEvent = _reflection.GeneratedProtocolMessageType( + "CloseEvent", + (_message.Message,), + { + "DESCRIPTOR": _CLOSEEVENT, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.CloseEvent) + }, +) +_sym_db.RegisterMessage(CloseEvent) + +WaitEvent = _reflection.GeneratedProtocolMessageType( + "WaitEvent", + (_message.Message,), + { + "DESCRIPTOR": _WAITEVENT, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.WaitEvent) + }, +) +_sym_db.RegisterMessage(WaitEvent) + +RegisterExtensionRequest = _reflection.GeneratedProtocolMessageType( + "RegisterExtensionRequest", + (_message.Message,), + { + "DESCRIPTOR": _REGISTEREXTENSIONREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.RegisterExtensionRequest) + }, +) +_sym_db.RegisterMessage(RegisterExtensionRequest) + +UnregisterExtensionRequest = _reflection.GeneratedProtocolMessageType( + "UnregisterExtensionRequest", + (_message.Message,), + { + "DESCRIPTOR": _UNREGISTEREXTENSIONREQUEST, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.UnregisterExtensionRequest) + }, +) +_sym_db.RegisterMessage(UnregisterExtensionRequest) + +ExtensionMessage = _reflection.GeneratedProtocolMessageType( + "ExtensionMessage", + (_message.Message,), + { + "DESCRIPTOR": _EXTENSIONMESSAGE, + "__module__": "schema_pb2" + # @@protoc_insertion_point(class_scope:hyperspace.ExtensionMessage) + }, +) +_sym_db.RegisterMessage(ExtensionMessage) + + +_HYPERSPACE = _descriptor.ServiceDescriptor( + name="Hyperspace", + full_name="hyperspace.Hyperspace", + file=DESCRIPTOR, + index=0, + serialized_options=b"\200\265\030\001", + create_key=_descriptor._internal_create_key, + serialized_start=2454, + serialized_end=2538, + methods=[ + _descriptor.MethodDescriptor( + name="Status", + full_name="hyperspace.Hyperspace.Status", + index=0, + containing_service=None, + input_type=hrpc__pb2._VOID, + output_type=_HYPERSPACESTATUSRESPONSE, + serialized_options=b"\210\265\030\001", + create_key=_descriptor._internal_create_key, + ), + ], +) +_sym_db.RegisterServiceDescriptor(_HYPERSPACE) + +DESCRIPTOR.services_by_name["Hyperspace"] = _HYPERSPACE + + +_CORESTORE = _descriptor.ServiceDescriptor( + name="Corestore", + full_name="hyperspace.Corestore", + file=DESCRIPTOR, + index=1, + serialized_options=b"\200\265\030\002", + create_key=_descriptor._internal_create_key, + serialized_start=2541, + serialized_end=2674, + methods=[ + _descriptor.MethodDescriptor( + name="Open", + full_name="hyperspace.Corestore.Open", + index=0, + containing_service=None, + input_type=_OPENREQUEST, + output_type=_OPENRESPONSE, + serialized_options=b"\210\265\030\001", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnFeed", + full_name="hyperspace.Corestore.OnFeed", + index=1, + containing_service=None, + input_type=_FEEDEVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\002", + create_key=_descriptor._internal_create_key, + ), + ], +) +_sym_db.RegisterServiceDescriptor(_CORESTORE) + +DESCRIPTOR.services_by_name["Corestore"] = _CORESTORE + + +_HYPERCORE = _descriptor.ServiceDescriptor( + name="Hypercore", + full_name="hyperspace.Hypercore", + file=DESCRIPTOR, + index=2, + serialized_options=b"\200\265\030\003", + create_key=_descriptor._internal_create_key, + serialized_start=2677, + serialized_end=3995, + methods=[ + _descriptor.MethodDescriptor( + name="Get", + full_name="hyperspace.Hypercore.Get", + index=0, + containing_service=None, + input_type=_GETREQUEST, + output_type=_GETRESPONSE, + serialized_options=b"\210\265\030\001", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Append", + full_name="hyperspace.Hypercore.Append", + index=1, + containing_service=None, + input_type=_APPENDREQUEST, + output_type=_APPENDRESPONSE, + serialized_options=b"\210\265\030\002", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Update", + full_name="hyperspace.Hypercore.Update", + index=2, + containing_service=None, + input_type=_UPDATEREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\003", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Seek", + full_name="hyperspace.Hypercore.Seek", + index=3, + containing_service=None, + input_type=_SEEKREQUEST, + output_type=_SEEKRESPONSE, + serialized_options=b"\210\265\030\004", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Has", + full_name="hyperspace.Hypercore.Has", + index=4, + containing_service=None, + input_type=_HASREQUEST, + output_type=_HASRESPONSE, + serialized_options=b"\210\265\030\005", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Cancel", + full_name="hyperspace.Hypercore.Cancel", + index=5, + containing_service=None, + input_type=_CANCELREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\006", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Download", + full_name="hyperspace.Hypercore.Download", + index=6, + containing_service=None, + input_type=_DOWNLOADREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\007", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Downloaded", + full_name="hyperspace.Hypercore.Downloaded", + index=7, + containing_service=None, + input_type=_DOWNLOADEDREQUEST, + output_type=_DOWNLOADEDRESPONSE, + serialized_options=b"\210\265\030\010", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Undownload", + full_name="hyperspace.Hypercore.Undownload", + index=8, + containing_service=None, + input_type=_UNDOWNLOADREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\t", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Close", + full_name="hyperspace.Hypercore.Close", + index=9, + containing_service=None, + input_type=_CLOSEREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\n", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="RegisterExtension", + full_name="hyperspace.Hypercore.RegisterExtension", + index=10, + containing_service=None, + input_type=_REGISTEREXTENSIONREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\013", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="UnregisterExtension", + full_name="hyperspace.Hypercore.UnregisterExtension", + index=11, + containing_service=None, + input_type=_UNREGISTEREXTENSIONREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\014", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="SendExtension", + full_name="hyperspace.Hypercore.SendExtension", + index=12, + containing_service=None, + input_type=_EXTENSIONMESSAGE, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\r", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="AcquireLock", + full_name="hyperspace.Hypercore.AcquireLock", + index=13, + containing_service=None, + input_type=_LOCKREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\016", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="ReleaseLock", + full_name="hyperspace.Hypercore.ReleaseLock", + index=14, + containing_service=None, + input_type=_LOCKREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\017", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnAppend", + full_name="hyperspace.Hypercore.OnAppend", + index=15, + containing_service=None, + input_type=_APPENDEVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\020", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnClose", + full_name="hyperspace.Hypercore.OnClose", + index=16, + containing_service=None, + input_type=_CLOSEEVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\021", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnPeerOpen", + full_name="hyperspace.Hypercore.OnPeerOpen", + index=17, + containing_service=None, + input_type=_PEEREVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\022", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnPeerRemove", + full_name="hyperspace.Hypercore.OnPeerRemove", + index=18, + containing_service=None, + input_type=_PEEREVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\023", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnExtension", + full_name="hyperspace.Hypercore.OnExtension", + index=19, + containing_service=None, + input_type=_EXTENSIONMESSAGE, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\024", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnWait", + full_name="hyperspace.Hypercore.OnWait", + index=20, + containing_service=None, + input_type=_WAITEVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\025", + create_key=_descriptor._internal_create_key, + ), + ], +) +_sym_db.RegisterServiceDescriptor(_HYPERCORE) + +DESCRIPTOR.services_by_name["Hypercore"] = _HYPERCORE + + +_NETWORK = _descriptor.ServiceDescriptor( + name="Network", + full_name="hyperspace.Network", + file=DESCRIPTOR, + index=3, + serialized_options=b"\200\265\030\004", + create_key=_descriptor._internal_create_key, + serialized_start=3998, + serialized_end=4718, + methods=[ + _descriptor.MethodDescriptor( + name="Open", + full_name="hyperspace.Network.Open", + index=0, + containing_service=None, + input_type=hrpc__pb2._VOID, + output_type=_OPENNETWORKRESPONSE, + serialized_options=b"\210\265\030\001", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Configure", + full_name="hyperspace.Network.Configure", + index=1, + containing_service=None, + input_type=_CONFIGURENETWORKREQUEST, + output_type=_NETWORKSTATUSRESPONSE, + serialized_options=b"\210\265\030\002", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="Status", + full_name="hyperspace.Network.Status", + index=2, + containing_service=None, + input_type=_NETWORKSTATUSREQUEST, + output_type=_NETWORKSTATUSRESPONSE, + serialized_options=b"\210\265\030\003", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="AllStatuses", + full_name="hyperspace.Network.AllStatuses", + index=3, + containing_service=None, + input_type=hrpc__pb2._VOID, + output_type=_ALLNETWORKSTATUSESRESPONSE, + serialized_options=b"\210\265\030\004", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="RegisterExtension", + full_name="hyperspace.Network.RegisterExtension", + index=4, + containing_service=None, + input_type=_REGISTEREXTENSIONREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\005", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="UnregisterExtension", + full_name="hyperspace.Network.UnregisterExtension", + index=5, + containing_service=None, + input_type=_UNREGISTEREXTENSIONREQUEST, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\006", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="SendExtension", + full_name="hyperspace.Network.SendExtension", + index=6, + containing_service=None, + input_type=_EXTENSIONMESSAGE, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\007", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnPeerAdd", + full_name="hyperspace.Network.OnPeerAdd", + index=7, + containing_service=None, + input_type=_PEEREVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\010", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnPeerRemove", + full_name="hyperspace.Network.OnPeerRemove", + index=8, + containing_service=None, + input_type=_PEEREVENT, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\t", + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name="OnExtension", + full_name="hyperspace.Network.OnExtension", + index=9, + containing_service=None, + input_type=_EXTENSIONMESSAGE, + output_type=hrpc__pb2._VOID, + serialized_options=b"\210\265\030\n", + create_key=_descriptor._internal_create_key, + ), + ], +) +_sym_db.RegisterServiceDescriptor(_NETWORK) + +DESCRIPTOR.services_by_name["Network"] = _NETWORK + +# @@protoc_insertion_point(module_scope) diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..da55da1 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,622 @@ +[[package]] +category = "dev" +description = "High level compatibility layer for multiple asynchronous event loop implementations" +name = "anyio" +optional = false +python-versions = ">=3.5.3" +version = "1.4.0" + +[package.dependencies] +async-generator = "*" +idna = ">=2.8" +sniffio = ">=1.1" + +[package.extras] +curio = ["curio (>=0.9)"] +doc = ["sphinx-rtd-theme", "sphinx-autodoc-typehints (>=1.2.0)"] +test = ["coverage (>=4.5)", "hypothesis (>=4.0)", "pytest (>=3.7.2)", "uvloop"] +trio = ["trio (>=0.12)"] + +[[package]] +category = "dev" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +name = "appdirs" +optional = false +python-versions = "*" +version = "1.4.4" + +[[package]] +category = "dev" +description = "AsyncExitStack backport for Python 3.5+" +name = "async-exit-stack" +optional = false +python-versions = ">=3.5" +version = "1.0.1" + +[[package]] +category = "dev" +description = "Async generators and context managers for Python 3.5+" +name = "async-generator" +optional = false +python-versions = ">=3.5" +version = "1.10" + +[[package]] +category = "dev" +description = "Classes Without Boilerplate" +name = "attrs" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "19.3.0" + +[package.extras] +azure-pipelines = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "pytest-azurepipelines"] +dev = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "pre-commit"] +docs = ["sphinx", "zope.interface"] +tests = ["coverage", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"] + +[[package]] +category = "dev" +description = "The uncompromising code formatter." +name = "black" +optional = false +python-versions = ">=3.6" +version = "19.10b0" + +[package.dependencies] +appdirs = "*" +attrs = ">=18.1.0" +click = ">=6.5" +pathspec = ">=0.6,<1" +regex = "*" +toml = ">=0.9.4" +typed-ast = ">=1.4.0" + +[package.extras] +d = ["aiohttp (>=3.3.2)", "aiohttp-cors"] + +[[package]] +category = "dev" +description = "Composable command line interface toolkit" +name = "click" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "7.1.2" + +[[package]] +category = "dev" +description = "PEP 567 Backport" +marker = "python_version < \"3.7\"" +name = "contextvars" +optional = false +python-versions = "*" +version = "2.4" + +[package.dependencies] +immutables = ">=0.9" + +[[package]] +category = "dev" +description = "the modular source code checker: pep8 pyflakes and co" +name = "flake8" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" +version = "3.8.3" + +[package.dependencies] +mccabe = ">=0.6.0,<0.7.0" +pycodestyle = ">=2.6.0a1,<2.7.0" +pyflakes = ">=2.2.0,<2.3.0" + +[package.dependencies.importlib-metadata] +python = "<3.8" +version = "*" + +[[package]] +category = "dev" +description = "HTTP/2-based RPC framework" +name = "grpcio" +optional = false +python-versions = "*" +version = "1.31.0" + +[package.dependencies] +six = ">=1.5.2" + +[package.extras] +protobuf = ["grpcio-tools (>=1.31.0)"] + +[[package]] +category = "dev" +description = "Protobuf code generator for gRPC" +name = "grpcio-tools" +optional = false +python-versions = "*" +version = "1.31.0" + +[package.dependencies] +grpcio = ">=1.31.0" +protobuf = ">=3.5.0.post1,<4.0dev" + +[[package]] +category = "dev" +description = "HTTP/2 State-Machine based protocol implementation" +name = "h2" +optional = false +python-versions = "*" +version = "3.2.0" + +[package.dependencies] +hpack = ">=3.0,<4" +hyperframe = ">=5.2.0,<6" + +[[package]] +category = "dev" +description = "Pure-Python HPACK header compression" +name = "hpack" +optional = false +python-versions = "*" +version = "3.0.0" + +[[package]] +category = "dev" +description = "Simple RPC with Protobuf Services" +name = "hyper-rpc" +optional = false +python-versions = ">=3.6,<4.0" +version = "0.0.1a4" + +[package.dependencies] +grpcio_tools = ">=1.31.0,<2.0.0" +purerpc = ">=0.6.1,<0.7.0" + +[[package]] +category = "dev" +description = "HTTP/2 framing layer for Python" +name = "hyperframe" +optional = false +python-versions = "*" +version = "5.2.0" + +[[package]] +category = "dev" +description = "Internationalized Domain Names in Applications (IDNA)" +name = "idna" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.10" + +[[package]] +category = "dev" +description = "Immutable Collections" +marker = "python_version < \"3.7\"" +name = "immutables" +optional = false +python-versions = ">=3.5" +version = "0.14" + +[[package]] +category = "dev" +description = "Read metadata from Python packages" +marker = "python_version < \"3.8\"" +name = "importlib-metadata" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" +version = "1.7.0" + +[package.dependencies] +zipp = ">=0.5" + +[package.extras] +docs = ["sphinx", "rst.linker"] +testing = ["packaging", "pep517", "importlib-resources (>=1.3)"] + +[[package]] +category = "dev" +description = "A Python utility / library to sort Python imports." +name = "isort" +optional = false +python-versions = ">=3.6,<4.0" +version = "5.3.2" + +[package.extras] +colors = ["colorama (>=0.4.3,<0.5.0)"] +pipfile_deprecated_finder = ["pipreqs", "requirementslib", "tomlkit (>=0.5.3)"] +requirements_deprecated_finder = ["pipreqs", "pip-api"] + +[[package]] +category = "dev" +description = "McCabe checker, plugin for flake8" +name = "mccabe" +optional = false +python-versions = "*" +version = "0.6.1" + +[[package]] +category = "dev" +description = "Utility library for gitignore style pattern matching of file paths." +name = "pathspec" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "0.8.0" + +[[package]] +category = "dev" +description = "Protocol Buffers" +name = "protobuf" +optional = false +python-versions = "*" +version = "3.12.4" + +[package.dependencies] +setuptools = "*" +six = ">=1.9" + +[[package]] +category = "dev" +description = "Asynchronous pure Python gRPC client and server implementation supporting asyncio, uvloop, curio and trio" +name = "purerpc" +optional = false +python-versions = ">=3.5" +version = "0.6.1" + +[package.dependencies] +anyio = ">=1.0.0,<2" +async-exit-stack = ">=1.0.1,<2" +async-generator = ">=1.10,<2.0" +h2 = ">=3.1.0,<4" +protobuf = ">=3.5.1,<4" +tblib = ">=1.3.2,<2" + +[[package]] +category = "dev" +description = "Python style guide checker" +name = "pycodestyle" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.6.0" + +[[package]] +category = "dev" +description = "passive checker of Python programs" +name = "pyflakes" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.2.0" + +[[package]] +category = "dev" +description = "Alternative regular expression module, to replace re." +name = "regex" +optional = false +python-versions = "*" +version = "2020.7.14" + +[[package]] +category = "dev" +description = "Python 2 and 3 compatibility utilities" +name = "six" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +version = "1.15.0" + +[[package]] +category = "dev" +description = "Sniff out which async library your code is running under" +name = "sniffio" +optional = false +python-versions = ">=3.5" +version = "1.1.0" + +[package.dependencies] +[package.dependencies.contextvars] +python = "<3.7" +version = ">=2.1" + +[[package]] +category = "dev" +description = "Traceback serialization library." +name = "tblib" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "1.7.0" + +[[package]] +category = "dev" +description = "Python Library for Tom's Obvious, Minimal Language" +name = "toml" +optional = false +python-versions = "*" +version = "0.10.1" + +[[package]] +category = "dev" +description = "a fork of Python 2 and 3 ast modules with type comment support" +name = "typed-ast" +optional = false +python-versions = "*" +version = "1.4.1" + +[[package]] +category = "dev" +description = "Backport of pathlib-compatible object wrapper for zip files" +marker = "python_version < \"3.8\"" +name = "zipp" +optional = false +python-versions = ">=3.6" +version = "3.1.0" + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] +testing = ["jaraco.itertools", "func-timeout"] + +[metadata] +content-hash = "305ddb4ac6976b536d2a90e995e2dcea3f33cbc22b2d511941576abe36f9030a" +python-versions = "^3.6" + +[metadata.files] +anyio = [ + {file = "anyio-1.4.0-py3-none-any.whl", hash = "sha256:9ee67e8131853f42957e214d4531cee6f2b66dda164a298d9686a768b7161a4f"}, + {file = "anyio-1.4.0.tar.gz", hash = "sha256:95f60964fc4583f3f226f8dc275dfb02aefe7b39b85a999c6d14f4ec5323c1d8"}, +] +appdirs = [ + {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, + {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, +] +async-exit-stack = [ + {file = "async_exit_stack-1.0.1-py3-none-any.whl", hash = "sha256:9b43b17683b3438f428ef3bbec20689f5abbb052aa4b564c643397330adfaa99"}, + {file = "async_exit_stack-1.0.1.tar.gz", hash = "sha256:24de1ad6d0ff27be97c89d6709fa49bf20db179eaf1f4d2e6e9b4409b80e747d"}, +] +async-generator = [ + {file = "async_generator-1.10-py3-none-any.whl", hash = "sha256:01c7bf666359b4967d2cda0000cc2e4af16a0ae098cbffcb8472fb9e8ad6585b"}, + {file = "async_generator-1.10.tar.gz", hash = "sha256:6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144"}, +] +attrs = [ + {file = "attrs-19.3.0-py2.py3-none-any.whl", hash = "sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c"}, + {file = "attrs-19.3.0.tar.gz", hash = "sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"}, +] +black = [ + {file = "black-19.10b0-py36-none-any.whl", hash = "sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b"}, + {file = "black-19.10b0.tar.gz", hash = "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539"}, +] +click = [ + {file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"}, + {file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"}, +] +contextvars = [ + {file = "contextvars-2.4.tar.gz", hash = "sha256:f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e"}, +] +flake8 = [ + {file = "flake8-3.8.3-py2.py3-none-any.whl", hash = "sha256:15e351d19611c887e482fb960eae4d44845013cc142d42896e9862f775d8cf5c"}, + {file = "flake8-3.8.3.tar.gz", hash = "sha256:f04b9fcbac03b0a3e58c0ab3a0ecc462e023a9faf046d57794184028123aa208"}, +] +grpcio = [ + {file = "grpcio-1.31.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:e8c3264b0fd728aadf3f0324471843f65bd3b38872bdab2a477e31ffb685dd5b"}, + {file = "grpcio-1.31.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:5fb0923b16590bac338e92d98c7d8effb3cfad1d2e18c71bf86bde32c49cd6dd"}, + {file = "grpcio-1.31.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:58d7121f48cb94535a4cedcce32921d0d0a78563c7372a143dedeec196d1c637"}, + {file = "grpcio-1.31.0-cp27-cp27m-win32.whl", hash = "sha256:ea849210e7362559f326cbe603d5b8d8bb1e556e86a7393b5a8847057de5b084"}, + {file = "grpcio-1.31.0-cp27-cp27m-win_amd64.whl", hash = "sha256:ba3e43cb984399064ffaa3c0997576e46a1e268f9da05f97cd9b272f0b59ee71"}, + {file = "grpcio-1.31.0-cp27-cp27mu-linux_armv7l.whl", hash = "sha256:ebb2ca09fa17537e35508a29dcb05575d4d9401138a68e83d1c605d65e8a1770"}, + {file = "grpcio-1.31.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:292635f05b6ce33f87116951d0b3d8d330bdfc5cac74f739370d60981e8c256c"}, + {file = "grpcio-1.31.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:92e54ab65e782f227e751c7555918afaba8d1229601687e89b80c2b65d2f6642"}, + {file = "grpcio-1.31.0-cp35-cp35m-linux_armv7l.whl", hash = "sha256:013287f99c99b201aa8a5f6bc7918f616739b9be031db132d9e3b8453e95e151"}, + {file = "grpcio-1.31.0-cp35-cp35m-macosx_10_7_intel.whl", hash = "sha256:d2c5e05c257859febd03f5d81b5015e1946d6bcf475c7bf63ee99cea8ab0d590"}, + {file = "grpcio-1.31.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:c9016ab1eaf4e054099303287195f3746bd4e69f2631d040f9dca43e910a5408"}, + {file = "grpcio-1.31.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:baaa036540d7ace433bdf38a3fe5e41cf9f84cdf10a88bac805f678a7ca8ddcc"}, + {file = "grpcio-1.31.0-cp35-cp35m-manylinux2014_i686.whl", hash = "sha256:75e383053dccb610590aa53eed5278db5c09bf498d3b5105ce6c776478f59352"}, + {file = "grpcio-1.31.0-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:739a72abffbd36083ff7adbb862cf1afc1e311c35834bed9c0361d8e68b063e1"}, + {file = "grpcio-1.31.0-cp35-cp35m-win32.whl", hash = "sha256:f04c59d186af3157dc8811114130aaeae92e90a65283733f41de94eed484e1f7"}, + {file = "grpcio-1.31.0-cp35-cp35m-win_amd64.whl", hash = "sha256:ef9fce98b6fe03874c2a6576b02aec1a0df25742cd67d1d7b75a49e30aa74225"}, + {file = "grpcio-1.31.0-cp36-cp36m-linux_armv7l.whl", hash = "sha256:08a9b648dbe8852ff94b73a1c96da126834c3057ba2301d13e8c4adff334c482"}, + {file = "grpcio-1.31.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c22b19abba63562a5a200e586b5bde39d26c8ec30c92e26d209d81182371693b"}, + {file = "grpcio-1.31.0-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:0397616355760cd8282ed5ea34d51830ae4cb6613b7e5f66bed3be5d041b8b9a"}, + {file = "grpcio-1.31.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:259240aab2603891553e17ad5b2655693df79e02a9b887ff605bdeb2fcd3dcc9"}, + {file = "grpcio-1.31.0-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:8ca26b489b5dc1e3d31807d329c23d6cb06fe40fbae25b0649b718947936e26a"}, + {file = "grpcio-1.31.0-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:bf39977282a79dc1b2765cc3402c0ada571c29a491caec6ed12c0993c1ec115e"}, + {file = "grpcio-1.31.0-cp36-cp36m-win32.whl", hash = "sha256:f5b0870b733bcb7b6bf05a02035e7aaf20f599d3802b390282d4c2309f825f1d"}, + {file = "grpcio-1.31.0-cp36-cp36m-win_amd64.whl", hash = "sha256:074871a184483d5cd0746fd01e7d214d3ee9d36e67e32a5786b0a21f29fb8304"}, + {file = "grpcio-1.31.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:220c46b1fc9c9a6fcca4caac398f08f0ed43cdd63c45b7458983c4a1575ef6df"}, + {file = "grpcio-1.31.0-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:7a11b1ebb3210f34913b8be6995936bf9ebc541a65ab69e75db5ce1fe5047e8f"}, + {file = "grpcio-1.31.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:3c2aa6d7a5e5bf73fdb1715eee777efe06dd39df03383f1cc095b2fdb34883e6"}, + {file = "grpcio-1.31.0-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:e64bddd09842ef508d72ca354319b0eb126205d951e8ac3128fe9869bd563552"}, + {file = "grpcio-1.31.0-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:5d7faa89992e015d245750ca9ac916c161bbf72777b2c60abc61da3fae41339e"}, + {file = "grpcio-1.31.0-cp37-cp37m-win32.whl", hash = "sha256:43d44548ad6ee738b941abd9f09e3b83a5c13f3e1410321023c3c148ba50e796"}, + {file = "grpcio-1.31.0-cp37-cp37m-win_amd64.whl", hash = "sha256:bf00ab06ea4f89976288f4d6224d4aa120780e30c955d4f85c3214ada29b3ddf"}, + {file = "grpcio-1.31.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:344b50865914cc8e6d023457bffee9a640abb18f75d0f2bb519041961c748da9"}, + {file = "grpcio-1.31.0-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:63ee8e02d04272c3d103f44b4bce5d43ea757dd288673cea212d2f7da27967d2"}, + {file = "grpcio-1.31.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:a9a7ae74cb3108e6457cf15532d4c300324b48fbcf3ef290bcd2835745f20510"}, + {file = "grpcio-1.31.0-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:64077e3a9a7cf2f59e6c76d503c8de1f18a76428f41a5b000dc53c48a0b772ff"}, + {file = "grpcio-1.31.0-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:8b42f0ac76be07a5fa31117a3388d754ad35ef05e2e34be185ca9ccbcfac2069"}, + {file = "grpcio-1.31.0-cp38-cp38-win32.whl", hash = "sha256:8002a89ea91c0078c15d3c0daf423fd4968946be78f08545e807ea9a5ff8054a"}, + {file = "grpcio-1.31.0-cp38-cp38-win_amd64.whl", hash = "sha256:0fa86ac4452602c79774783aa68979a1a7625ebb7eaabee2b6550b975b9d61e6"}, + {file = "grpcio-1.31.0.tar.gz", hash = "sha256:5043440c45c0a031f387e7f48527541c65d672005fb24cf18ef6857483557d39"}, +] +grpcio-tools = [ + {file = "grpcio-tools-1.31.0.tar.gz", hash = "sha256:3b08cbd3f4d5b60e3bff8f859e6e03db739967a684268164abc940415e23ca51"}, + {file = "grpcio_tools-1.31.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:fa472b13319bc68dcb23781682552b3148f09eae5f170ab9c5936bdc43bc154f"}, + {file = "grpcio_tools-1.31.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:e687db983f787079cc15055ae4011b8d780568133aec8b8514c2321a48a83c65"}, + {file = "grpcio_tools-1.31.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:82ea52b677477df5d69e0c492c13c75946ef07412101367c2c630f8b08cd3425"}, + {file = "grpcio_tools-1.31.0-cp27-cp27m-win32.whl", hash = "sha256:7ff04f2ef10d0967a990573cec88acc75a0f544d758bd46328f1065bf3f52002"}, + {file = "grpcio_tools-1.31.0-cp27-cp27m-win_amd64.whl", hash = "sha256:e1b46e3812591e0c4c61bbc1c96d92b554a7c0264667349b7ad7a2e2be760fd0"}, + {file = "grpcio_tools-1.31.0-cp27-cp27mu-linux_armv7l.whl", hash = "sha256:10ab271fd8808fa10f2c9541b3b256c7c678224d3c15f656442709dd9b591082"}, + {file = "grpcio_tools-1.31.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:04320a95426f2a1b0a4b76a98fb79702d0557c9df400e78a9261a38f09475362"}, + {file = "grpcio_tools-1.31.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:150d6e5642211df3e6af56fed963d625ed5e33b7c27d7dee6c400dc8f4edc19e"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-linux_armv7l.whl", hash = "sha256:eab1fd5f65b88ee34f58b823110012d66961b63827b2cdb20fe05df0a2525e5b"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-macosx_10_9_intel.whl", hash = "sha256:7f6edce2d18bccc3a494785519a62bed271c69186a2e8642dc4165066e196d2b"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:013c11c8be408abcc4fea39a7222d94b84618f0794d3b6db2060ac967042ced2"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:3e743797961185266e303cc0c0a365800108184425f31a4182f4ddb9788b59d7"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-manylinux2014_i686.whl", hash = "sha256:a945723b2205dd542ea9019c61682c50f82559c6f231ad11be848d00295870f1"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:8faad8223a4c6b351943a0460822a09b7891cd3cdc16b5d3ad3db7516e3f09b2"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-win32.whl", hash = "sha256:262f53786148e5ba6990cdd91db76a252fef885a34fef94cd0f629103791640f"}, + {file = "grpcio_tools-1.31.0-cp35-cp35m-win_amd64.whl", hash = "sha256:a3a2039d2ee2cb58577dbdef8d70bbfaea03c3f08f8c49b63f854320da0130f9"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-linux_armv7l.whl", hash = "sha256:11849b3ca46d4e4e358d6fbccface509b885a32b91fbe5e9509136e54f2dcd9a"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cdb52b6340d8e8954e08e5e345cc6b4defa9e0e075b4a57f2053ecac3065037c"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d36cb70313ab24eae7ca4da611303a768a4ec6739b20c677a39cba43d6a2b70e"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:e2a7ef1deb955d7ea4e0aa8139ad42467710137421001c118e6a15c29662d34c"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:1e454c1e28196d625ba8768baadece37667669a3142ec616245ac119c41b16b5"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:fe8f8a188ab7e5955126588ba340f9a118d5a61173af8ca1b1cf05544a66312f"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-win32.whl", hash = "sha256:01efc0467bb67c395ddfe6b27902316ec953c2cd1b4936569665b0a5bccec66e"}, + {file = "grpcio_tools-1.31.0-cp36-cp36m-win_amd64.whl", hash = "sha256:a8d9f98a370332633ebc0c9be769a99b3ca2253dc2cd1ca942c26869fe4207d3"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:da61a10c60685979468ce97dc348ce4ebfc3fa5687874f36c9f834a8e645e9f2"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:8efb0106bc71f984908b8510ffaba8b0a0905b871eb5cc6a684ce7d2e74bbd21"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:8253aa47e1609dcb63001115416c81eada630f2606baace658eb44a36fa570f1"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:7b1b8943b71709fbd2fc44bc3f5734fccbbd4eb1b13f3f294590dfb9e5ac714d"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:9d96053c153673ddfa445890f4b1f9ca1b6100bd0f54a80bed29e8c0908cd830"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-win32.whl", hash = "sha256:d72f1cb2c8d0f20a8356f800c81413798caf29713a03ff8d73c776ba2baca626"}, + {file = "grpcio_tools-1.31.0-cp37-cp37m-win_amd64.whl", hash = "sha256:286979d3780f85ccc80c1dae86e0b649f25f4d18dcae123b87555468b4a14071"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:66ce45b67b302662b378151522b9cdf04968bbd91678f88982c7b0a1f185fc78"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:146a583c395b1548fae2162c671c21a0ec1bf628c9d02951f77f28e70eeb7f74"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:5585da595d8d164c2908bffaf39801674974ac95ee47971df87b2c41b36e4c60"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:a642a0aa02223375c502e8380bb59f9e7bd21084ff7d0380a5b3e16408a6690a"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:0cde7d7271f2633e7b1cff9bac171921133618ef3452a1e6f1752c0a32dbf94a"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-win32.whl", hash = "sha256:54285a3f9b110b1e08dcf96832f2b9f7d4c4a14556a8bbce41d98cea7f226e6c"}, + {file = "grpcio_tools-1.31.0-cp38-cp38-win_amd64.whl", hash = "sha256:66c4948babbd698fef3e5fa47811267dad08f9cb3455a4866b98c854a4a01f46"}, +] +h2 = [ + {file = "h2-3.2.0-py2.py3-none-any.whl", hash = "sha256:61e0f6601fa709f35cdb730863b4e5ec7ad449792add80d1410d4174ed139af5"}, + {file = "h2-3.2.0.tar.gz", hash = "sha256:875f41ebd6f2c44781259005b157faed1a5031df3ae5aa7bcb4628a6c0782f14"}, +] +hpack = [ + {file = "hpack-3.0.0-py2.py3-none-any.whl", hash = "sha256:0edd79eda27a53ba5be2dfabf3b15780928a0dff6eb0c60a3d6767720e970c89"}, + {file = "hpack-3.0.0.tar.gz", hash = "sha256:8eec9c1f4bfae3408a3f30500261f7e6a65912dc138526ea054f9ad98892e9d2"}, +] +hyper-rpc = [ + {file = "hyper-rpc-0.0.1a4.tar.gz", hash = "sha256:c5434d8711fd590ecd5b902171517661d8ca6302f16c9962f7d758841936ac97"}, + {file = "hyper_rpc-0.0.1a4-py3-none-any.whl", hash = "sha256:37dcb611dee7536e11c62560df85bda57a4f0998e0be013bf7ad08c26865fbcb"}, +] +hyperframe = [ + {file = "hyperframe-5.2.0-py2.py3-none-any.whl", hash = "sha256:5187962cb16dcc078f23cb5a4b110098d546c3f41ff2d4038a9896893bbd0b40"}, + {file = "hyperframe-5.2.0.tar.gz", hash = "sha256:a9f5c17f2cc3c719b917c4f33ed1c61bd1f8dfac4b1bd23b7c80b3400971b41f"}, +] +idna = [ + {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, + {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, +] +immutables = [ + {file = "immutables-0.14-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:860666fab142401a5535bf65cbd607b46bc5ed25b9d1eb053ca8ed9a1a1a80d6"}, + {file = "immutables-0.14-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:ce01788878827c3f0331c254a4ad8d9721489a5e65cc43e19c80040b46e0d297"}, + {file = "immutables-0.14-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:8797eed4042f4626b0bc04d9cf134208918eb0c937a8193a2c66df5041e62d2e"}, + {file = "immutables-0.14-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:33ce2f977da7b5e0dddd93744862404bdb316ffe5853ec853e53141508fa2e6a"}, + {file = "immutables-0.14-cp36-cp36m-win_amd64.whl", hash = "sha256:6c8eace4d98988c72bcb37c05e79aae756832738305ae9497670482a82db08bc"}, + {file = "immutables-0.14-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:ab6c18b7b2b2abc83e0edc57b0a38bf0915b271582a1eb8c7bed1c20398f8040"}, + {file = "immutables-0.14-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:c099212fd6504513a50e7369fe281007c820cf9d7bb22a336486c63d77d6f0b2"}, + {file = "immutables-0.14-cp37-cp37m-win_amd64.whl", hash = "sha256:714aedbdeba4439d91cb5e5735cb10631fc47a7a69ea9cc8ecbac90322d50a4a"}, + {file = "immutables-0.14-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:1c11050c49e193a1ec9dda1747285333f6ba6a30bbeb2929000b9b1192097ec0"}, + {file = "immutables-0.14-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:c453e12b95e1d6bb4909e8743f88b7f5c0c97b86a8bc0d73507091cb644e3c1e"}, + {file = "immutables-0.14-cp38-cp38-win_amd64.whl", hash = "sha256:ef9da20ec0f1c5853b5c8f8e3d9e1e15b8d98c259de4b7515d789a606af8745e"}, + {file = "immutables-0.14.tar.gz", hash = "sha256:a0a1cc238b678455145bae291d8426f732f5255537ed6a5b7645949704c70a78"}, +] +importlib-metadata = [ + {file = "importlib_metadata-1.7.0-py2.py3-none-any.whl", hash = "sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070"}, + {file = "importlib_metadata-1.7.0.tar.gz", hash = "sha256:90bb658cdbbf6d1735b6341ce708fc7024a3e14e99ffdc5783edea9f9b077f83"}, +] +isort = [ + {file = "isort-5.3.2-py3-none-any.whl", hash = "sha256:5196bd2f5b23dc91215734b1c96c6d28390061d69860a948094c12635d6d64e6"}, + {file = "isort-5.3.2.tar.gz", hash = "sha256:ba83762132a8661d3525f87a86549712fb7d8da79eeb452e01f327ada9e87920"}, +] +mccabe = [ + {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, + {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, +] +pathspec = [ + {file = "pathspec-0.8.0-py2.py3-none-any.whl", hash = "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0"}, + {file = "pathspec-0.8.0.tar.gz", hash = "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"}, +] +protobuf = [ + {file = "protobuf-3.12.4-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:3d59825cba9447e8f4fcacc1f3c892cafd28b964e152629b3f420a2fb5918b5a"}, + {file = "protobuf-3.12.4-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:6009f3ebe761fad319b52199a49f1efa7a3729302947a78a3f5ea8e7e89e3ac2"}, + {file = "protobuf-3.12.4-cp35-cp35m-macosx_10_9_intel.whl", hash = "sha256:e2bd5c98952db3f1bb1af2e81b6a208909d3b8a2d32f7525c5cc10a6338b6593"}, + {file = "protobuf-3.12.4-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:2becd0e238ae34caf96fa7365b87f65b88aebcf7864dfe5ab461c5005f4256d9"}, + {file = "protobuf-3.12.4-cp35-cp35m-win32.whl", hash = "sha256:ef991cbe34d7bb935ba6349406a210d3558b9379c21621c6ed7b99112af7350e"}, + {file = "protobuf-3.12.4-cp35-cp35m-win_amd64.whl", hash = "sha256:a7b6cf201e67132ca99b8a6c4812fab541fdce1ceb54bb6f66bc336ab7259138"}, + {file = "protobuf-3.12.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:4794a7748ee645d2ae305f3f4f0abd459e789c973b5bc338008960f83e0c554b"}, + {file = "protobuf-3.12.4-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:f1796e0eb911bf5b08e76b753953effbeb6bc42c95c16597177f627eaa52c375"}, + {file = "protobuf-3.12.4-cp36-cp36m-win32.whl", hash = "sha256:c0c8d7c8f07eacd9e98a907941b56e57883cf83de069cfaeaa7e02c582f72ddb"}, + {file = "protobuf-3.12.4-cp36-cp36m-win_amd64.whl", hash = "sha256:2db6940c1914fa3fbfabc0e7c8193d9e18b01dbb4650acac249b113be3ba8d9e"}, + {file = "protobuf-3.12.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b6842284bb15f1b19c50c5fd496f1e2a4cfefdbdfa5d25c02620cb82793295a7"}, + {file = "protobuf-3.12.4-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:0b00429b87821f1e6f3d641327864e6f271763ae61799f7540bc58a352825fe2"}, + {file = "protobuf-3.12.4-cp37-cp37m-win32.whl", hash = "sha256:f10ba89f9cd508dc00e469918552925ef7cba38d101ca47af1e78f2f9982c6b3"}, + {file = "protobuf-3.12.4-cp37-cp37m-win_amd64.whl", hash = "sha256:2636c689a6a2441da9a2ef922a21f9b8bfd5dfe676abd77d788db4b36ea86bee"}, + {file = "protobuf-3.12.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:50b7bb2124f6a1fb0ddc6a44428ae3a21e619ad2cdf08130ac6c00534998ef07"}, + {file = "protobuf-3.12.4-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:e77ca4e1403b363a88bde9e31c11d093565e925e1685f40b29385a52f2320794"}, + {file = "protobuf-3.12.4-py2.py3-none-any.whl", hash = "sha256:32f0bcdf85e0040f36b4f548c71177027f2a618cab00ba235197fa9e230b7289"}, + {file = "protobuf-3.12.4.tar.gz", hash = "sha256:c99e5aea75b6f2b29c8d8da5bdc5f5ed8d9a5b4f15115c8316a3f0a850f94656"}, +] +purerpc = [ + {file = "purerpc-0.6.1-py3-none-any.whl", hash = "sha256:f98e84e2d17c2e72f4a74e9ea06a25ec5675a3caf85c1d5648b4cd1aa3fcd71d"}, + {file = "purerpc-0.6.1.tar.gz", hash = "sha256:5491da26c59b84ed0b1d9b25421b44938e46b838bb693d303a334d96289ed82c"}, +] +pycodestyle = [ + {file = "pycodestyle-2.6.0-py2.py3-none-any.whl", hash = "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367"}, + {file = "pycodestyle-2.6.0.tar.gz", hash = "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e"}, +] +pyflakes = [ + {file = "pyflakes-2.2.0-py2.py3-none-any.whl", hash = "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92"}, + {file = "pyflakes-2.2.0.tar.gz", hash = "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8"}, +] +regex = [ + {file = "regex-2020.7.14-cp27-cp27m-win32.whl", hash = "sha256:e46d13f38cfcbb79bfdb2964b0fe12561fe633caf964a77a5f8d4e45fe5d2ef7"}, + {file = "regex-2020.7.14-cp27-cp27m-win_amd64.whl", hash = "sha256:6961548bba529cac7c07af2fd4d527c5b91bb8fe18995fed6044ac22b3d14644"}, + {file = "regex-2020.7.14-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:c50a724d136ec10d920661f1442e4a8b010a4fe5aebd65e0c2241ea41dbe93dc"}, + {file = "regex-2020.7.14-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:8a51f2c6d1f884e98846a0a9021ff6861bdb98457879f412fdc2b42d14494067"}, + {file = "regex-2020.7.14-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:9c568495e35599625f7b999774e29e8d6b01a6fb684d77dee1f56d41b11b40cd"}, + {file = "regex-2020.7.14-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:51178c738d559a2d1071ce0b0f56e57eb315bcf8f7d4cf127674b533e3101f88"}, + {file = "regex-2020.7.14-cp36-cp36m-win32.whl", hash = "sha256:9eddaafb3c48e0900690c1727fba226c4804b8e6127ea409689c3bb492d06de4"}, + {file = "regex-2020.7.14-cp36-cp36m-win_amd64.whl", hash = "sha256:14a53646369157baa0499513f96091eb70382eb50b2c82393d17d7ec81b7b85f"}, + {file = "regex-2020.7.14-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:1269fef3167bb52631ad4fa7dd27bf635d5a0790b8e6222065d42e91bede4162"}, + {file = "regex-2020.7.14-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:d0a5095d52b90ff38592bbdc2644f17c6d495762edf47d876049cfd2968fbccf"}, + {file = "regex-2020.7.14-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:4c037fd14c5f4e308b8370b447b469ca10e69427966527edcab07f52d88388f7"}, + {file = "regex-2020.7.14-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:bc3d98f621898b4a9bc7fecc00513eec8f40b5b83913d74ccb445f037d58cd89"}, + {file = "regex-2020.7.14-cp37-cp37m-win32.whl", hash = "sha256:46bac5ca10fb748d6c55843a931855e2727a7a22584f302dd9bb1506e69f83f6"}, + {file = "regex-2020.7.14-cp37-cp37m-win_amd64.whl", hash = "sha256:0dc64ee3f33cd7899f79a8d788abfbec168410be356ed9bd30bbd3f0a23a7204"}, + {file = "regex-2020.7.14-cp38-cp38-manylinux1_i686.whl", hash = "sha256:5ea81ea3dbd6767873c611687141ec7b06ed8bab43f68fad5b7be184a920dc99"}, + {file = "regex-2020.7.14-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:bbb332d45b32df41200380fff14712cb6093b61bd142272a10b16778c418e98e"}, + {file = "regex-2020.7.14-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:c11d6033115dc4887c456565303f540c44197f4fc1a2bfb192224a301534888e"}, + {file = "regex-2020.7.14-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:75aaa27aa521a182824d89e5ab0a1d16ca207318a6b65042b046053cfc8ed07a"}, + {file = "regex-2020.7.14-cp38-cp38-win32.whl", hash = "sha256:d6cff2276e502b86a25fd10c2a96973fdb45c7a977dca2138d661417f3728341"}, + {file = "regex-2020.7.14-cp38-cp38-win_amd64.whl", hash = "sha256:7a2dd66d2d4df34fa82c9dc85657c5e019b87932019947faece7983f2089a840"}, + {file = "regex-2020.7.14.tar.gz", hash = "sha256:3a3af27a8d23143c49a3420efe5b3f8cf1a48c6fc8bc6856b03f638abc1833bb"}, +] +six = [ + {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, + {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, +] +sniffio = [ + {file = "sniffio-1.1.0-py3-none-any.whl", hash = "sha256:20ed6d5b46f8ae136d00b9dcb807615d83ed82ceea6b2058cecb696765246da5"}, + {file = "sniffio-1.1.0.tar.gz", hash = "sha256:8e3810100f69fe0edd463d02ad407112542a11ffdc29f67db2bf3771afb87a21"}, +] +tblib = [ + {file = "tblib-1.7.0-py2.py3-none-any.whl", hash = "sha256:289fa7359e580950e7d9743eab36b0691f0310fce64dee7d9c31065b8f723e23"}, + {file = "tblib-1.7.0.tar.gz", hash = "sha256:059bd77306ea7b419d4f76016aef6d7027cc8a0785579b5aad198803435f882c"}, +] +toml = [ + {file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"}, + {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, +] +typed-ast = [ + {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3"}, + {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb"}, + {file = "typed_ast-1.4.1-cp35-cp35m-win32.whl", hash = "sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919"}, + {file = "typed_ast-1.4.1-cp35-cp35m-win_amd64.whl", hash = "sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01"}, + {file = "typed_ast-1.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75"}, + {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652"}, + {file = "typed_ast-1.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7"}, + {file = "typed_ast-1.4.1-cp36-cp36m-win32.whl", hash = "sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1"}, + {file = "typed_ast-1.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa"}, + {file = "typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614"}, + {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41"}, + {file = "typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b"}, + {file = "typed_ast-1.4.1-cp37-cp37m-win32.whl", hash = "sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe"}, + {file = "typed_ast-1.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355"}, + {file = "typed_ast-1.4.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6"}, + {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907"}, + {file = "typed_ast-1.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d"}, + {file = "typed_ast-1.4.1-cp38-cp38-win32.whl", hash = "sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c"}, + {file = "typed_ast-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4"}, + {file = "typed_ast-1.4.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34"}, + {file = "typed_ast-1.4.1.tar.gz", hash = "sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b"}, +] +zipp = [ + {file = "zipp-3.1.0-py3-none-any.whl", hash = "sha256:aa36550ff0c0b7ef7fa639055d797116ee891440eac1a56f378e2d3179e0320b"}, + {file = "zipp-3.1.0.tar.gz", hash = "sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96"}, +] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e76b785 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,70 @@ +[build-system] +requires = ["poetry>=1.0.9,<2.0"] +build-backend = "poetry.masonry.api" + +[tool.poetry] +name = "hyperspace-rpc" +version = "0.0.1a1" +description = "Raw RPC layer for Hyperspace" +authors = ["decentral1se "] +maintainers = ["decentral1se "] +license = "GPLv3" +readme = "README.md" +repository = "https://github.com/hyperpy/hyperspace-rpc" +keywords = [] + +[tool.poetry.dependencies] +python = "^3.6" + +[tool.poetry.dev-dependencies] +black = "^19.10b0" +flake8 = "^3.8.3" +isort = "^5.0.2" +hyper-rpc = "^0.0.1-alpha.4" + +[tool.black] +line-length = 80 +target-version = ["py38"] +include = '\.pyi?$' + +[tool.isort] +include_trailing_comma = true +known_first_party = "hyperspace-rpc" +line_length = 80 +multi_line_output = 3 +skip = ".tox" + +[tool.tox] +legacy_tox_ini = """ +[tox] +envlist = + {py36,py37,py38} + lint + sort + format + type +skip_missing_interpreters = True +isolated_build = True + +[testenv] + +[testenv:lint] +skipdist = True +deps = flake8 +commands = flake8 {posargs:--max-line-length 80} hyperspace-rpc/ + +[testenv:sort] +skipdist = True +deps = isort +commands = isort {posargs:-c} hyperspace-rpc/ + +[testenv:format] +skipdist = True +deps = black +commands = black {posargs:--check} hyperspace-rpc/ + +[testenv:type] +skipdist = True +deps = mypy +commands = mypy {posargs:--ignore-missing-imports} hyperspace-rpc/ +"""