-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from SmartContractSecurity/docs
Added the logic to preview documentation with read-docs
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Getting Started with swc-registry-python | ||
======================================== | ||
|
||
SWC-registry-python is a python package for accessing SWC-registry content. | ||
|
||
|
||
Quick start | ||
----------- | ||
|
||
Assuming you have Python already: | ||
|
||
.. sourcecode:: bash | ||
|
||
$ pip install swc-registry | ||
|
||
Check the package work: | ||
|
||
.. sourcecode:: python | ||
|
||
from swc_registry import SWC | ||
|
||
swc = SWC('SWC-100') | ||
print(swc.title) | ||
|
||
// Function Default Visibility | ||
|
||
|
||
Get the latest content of SWC-registry | ||
-------------------------------------- | ||
|
||
On first use of the SWC methods, the SWC registry is initialized from file (swc-definition.json) out cache. If user wants to get the latest information about SWC-registry he needs to pass the second argument of SWC class. | ||
|
||
.. sourcecode:: python | ||
|
||
from swc_registry import SWC | ||
|
||
swc = SWC('SWC-100', True) | ||
print(swc.title) | ||
|
||
// Function Default Visibility |