py3-softlayer
A set of Python libraries that assist in calling the SoftLayer API.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
A set of Python libraries that assist in calling the SoftLayer API.
Basic Info
- Host: GitHub
- Owner: softlayer
- License: mit
- Language: Python
- Default Branch: master
- Homepage: http://softlayer.github.io/softlayer-python/
- Size: 10.1 MB
Statistics
- Stars: 150
- Watchers: 35
- Forks: 194
- Open Issues: 20
- Releases: 64
Topics
Metadata Files
README-internal.md
This document is for internal users wanting to use this library to interact with the internal API. It will not work for api.softlayer.com.
SSL: CERTIFICATEVERIFYFAILED fix
You need to specify the server certificate to verify the connection to the internal API since its a self signed certificate. Python's request module doesn't use the system SSL cert for some reason, so even if you can use curl without SSL errors becuase you installed the certificate on your system, you still need to tell python about it. Further reading:
- https://hackernoon.com/solving-the-dreadful-certificate-issues-in-python-requests-module
- https://levelup.gitconnected.com/using-custom-ca-in-python-here-is-the-how-to-for-k8s-implementations-c450451b6019
On Mac, after installing the softlayer.local certificate, the following worked for me:
bash
security export -t certs -f pemseq -k /System/Library/Keychains/SystemRootCertificates.keychain -o bundleCA.pem
sudo cp bundleCA.pem /etc/ssl/certs/bundleCA.pem
Alternatively
bash
API_HOST=<internal api endpoint>
echo quit | openssl s_client -showcerts -servername "${API_HOST}" -connect "${API_HOST}":443 > cacert.pem
Then in the ~/.softlayer config, set verify = /etc/ssl/certs/bundleCA.pem and that should work.
You may also need to set REQUESTS_CA_BUNDLE -> export REQUESTS_CA_BUNDLE=/etc/ssl/certs/bundleCA.pem to force python to load your CA bundle
Certificate Example
For use with a utility certificate. In your config file (usually ~/.softlayer), you need to set the following:
[softlayer]
endpoint_url = https://<internal api endpoint>/v3/internal/rest/
timeout = 0
theme = dark
auth_cert = /etc/ssl/certs/my_utility_cert-dev.pem
verify = /etc/ssl/certs/allCAbundle.pem
auth_cert: is your utility user certificate
server_cert: is the CA certificate bundle to validate the internal API ssl chain. Otherwise you get self-signed ssl errors without this.
```python import SoftLayer import logging import click
@click.command() def testAuthentication(): client = SoftLayer.CertificateClient() result = client.call('SoftLayer_Account', 'getObject', id=12345, mask="mask[id,companyName]") print(result)
if name == "main": logger = logging.getLogger() logger.addHandler(logging.StreamHandler()) logger.setLevel(logging.DEBUG) testAuthentication() ```
Employee Example
To login with your employee username, have your config look something like this
NOTE: Currently logging in with the rest endpoint doesn't quite work, so use xmlrpc until I fix this issue
[softlayer]
username = <softlayer domain username>
endpoint_url = https://<internal api endpoint>/v3/internal/xmlrpc/
verify = /etc/ssl/certs/allCAbundle.pem
You can login and use the slcli with. Use the -i flag to make internal API calls, otherwise it will make SLDN api calls.
bash
slcli -i emplogin
If you want to use any of the built in commands, you may need to use the -a <accountId> flag.
Owner
- Name: SoftLayer
- Login: softlayer
- Kind: organization
- Email: sldndeveloperrelations@wwpdl.vnet.ibm.com
- Location: Dallas, TX USA
- Website: https://sldn.softlayer.com
- Repositories: 48
- Profile: https://github.com/softlayer
GitHub Events
Total
- Create event: 23
- Release event: 2
- Issues event: 28
- Delete event: 16
- Issue comment event: 12
- Push event: 27
- Pull request review event: 6
- Pull request review comment event: 1
- Pull request event: 45
- Fork event: 2
Last Year
- Create event: 23
- Release event: 2
- Issues event: 28
- Delete event: 16
- Issue comment event: 12
- Push event: 27
- Pull request review event: 6
- Pull request review comment event: 1
- Pull request event: 45
- Fork event: 2
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Christopher Gallo | c****o@g****m | 720 |
| Kevin McDonald | k****d@g****m | 592 |
| caberos | D****o@i****m | 273 |
| Nathan Beittenmiller | n****r@s****m | 203 |
| Fernando Ojeda | f****a@j****m | 177 |
| ATGE | g****m@g****m | 124 |
| caberos | c****8@g****m | 83 |
| edsonarios | e****9@g****m | 76 |
| Kevin McDonald | k****d@s****m | 75 |
| Kevin Landreth | c****k@g****m | 72 |
| Ramkishor Chaladi | r****h@R****l | 65 |
| Neetu Jain | n****i@g****m | 50 |
| Brian Flores | b****s@i****m | 50 |
| Kevin Landreth | k****h@s****m | 50 |
| Erick Sapp | e****p@d****n | 46 |
| Cameron Porter | p****a@u****m | 44 |
| anasouma | w****c@u****m | 43 |
| dependabot[bot] | 4****] | 38 |
| kz6fittycent | j****t@g****m | 32 |
| Daniel Cabero Barrios | D****o@j****l | 31 |
| Albert Camacho | c****2@g****m | 30 |
| JayasilanJibm | 1****m | 30 |
| Ramkishor Chaladi | 1****h | 28 |
| Neetu Jain | n****n@s****m | 27 |
| Brian Cline | b****e@s****m | 27 |
| J Jayasilan | j****j@J****e | 26 |
| underscorephil | u****l@g****m | 25 |
| Ryan Rossiter | r****t@u****m | 23 |
| David Pickle | d****9@g****m | 22 |
| ko101 | 3****1 | 17 |
| and 93 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 164
- Total pull requests: 256
- Average time to close issues: 4 months
- Average time to close pull requests: 5 days
- Total issue authors: 17
- Total pull request authors: 14
- Average comments per issue: 0.36
- Average comments per pull request: 0.34
- Merged pull requests: 235
- Bot issues: 0
- Bot pull requests: 50
Past Year
- Issues: 13
- Pull requests: 64
- Average time to close issues: 5 days
- Average time to close pull requests: 5 days
- Issue authors: 3
- Pull request authors: 5
- Average comments per issue: 0.23
- Average comments per pull request: 0.08
- Merged pull requests: 54
- Bot issues: 0
- Bot pull requests: 23
Top Authors
Issue Authors
- allmightyspiff (86)
- ramkishor-ch (32)
- edsonarios (11)
- BrianSantivanez (11)
- caberos (11)
- twoerthle (2)
- mohammedTalukder (1)
- nickliuibm (1)
- KodieGlosserIBM (1)
- JayasilanJibm (1)
- pauljnightingale (1)
- ko101 (1)
- kz6fittycent (1)
- efir-tractatus (1)
- vickmuir (1)
Pull Request Authors
- allmightyspiff (117)
- dependabot[bot] (50)
- caberos (18)
- JayasilanJibm (17)
- edsonarios (17)
- ramkishor-ch (17)
- BrianSantivanez (8)
- kz6fittycent (3)
- karistom (2)
- s-t-e-v-e-n-k (2)
- d3rnn (2)
- ko101 (1)
- karyotakisg (1)
- FernandoOjeda (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 17
-
Total downloads:
- pypi 93,329 last-month
-
Total dependent packages: 8
(may contain duplicates) -
Total dependent repositories: 41
(may contain duplicates) - Total versions: 145
- Total maintainers: 7
pypi.org: softlayer
A library for SoftLayer's API
- Homepage: https://github.com/SoftLayer/softlayer-python
- Documentation: https://softlayer.readthedocs.io/
- License: MIT
-
Latest release: 6.2.7
published 8 months ago
Rankings
Maintainers (6)
alpine-v3.18: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.1.7-r0
published almost 3 years ago
Rankings
Maintainers (1)
alpine-v3.18: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.1.7-r0
published almost 3 years ago
Rankings
Maintainers (1)
alpine-edge: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.7-r0
published 8 months ago
Rankings
Maintainers (1)
alpine-v3.15: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 5.9.7-r0
published over 4 years ago
Rankings
Maintainers (1)
alpine-v3.16: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.0.2-r0
published almost 4 years ago
Rankings
Maintainers (1)
alpine-v3.14: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 5.9.5-r0
published almost 5 years ago
Rankings
Maintainers (1)
alpine-v3.17: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.1.2-r0
published over 3 years ago
Rankings
Maintainers (1)
alpine-edge: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.7-r0
published 8 months ago
Rankings
Maintainers (1)
alpine-v3.21: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.5-r0
published over 1 year ago
Rankings
Maintainers (1)
alpine-v3.19: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.1.10-r0
published over 2 years ago
Rankings
Maintainers (1)
alpine-v3.21: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.5-r0
published over 1 year ago
Rankings
Maintainers (1)
alpine-v3.22: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.6-r0
published about 1 year ago
Rankings
Maintainers (1)
alpine-v3.22: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.6-r0
published about 1 year ago
Rankings
Maintainers (1)
alpine-v3.20: py3-softlayer-pyc
Precompiled Python bytecode for py3-softlayer
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.20: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.2.0-r0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.19: py3-softlayer
library for SoftLayer's API
- Homepage: https://github.com/softlayer/softlayer-python
- License: MIT
-
Latest release: 6.1.10-r0
published over 2 years ago
Rankings
Dependencies
- actions/checkout v2 composite
- github/codeql-action/analyze v1 composite
- github/codeql-action/autobuild v1 composite
- github/codeql-action/init v1 composite
- actions/checkout v2 composite
- actions/setup-python v1 composite
- actions/checkout master composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- samuelmeuli/action-snapcraft v1.2.0 composite
- actions/checkout master composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish master composite
- actions/checkout v2 composite
- actions/setup-python v1 composite
- click *
- prettytable *
- rich *
- sphinx *
- sphinx-click *
- click *
- prettytable *
- prompt_toolkit *
- pygments *
- requests *
- rich *
- urllib3 *
- click >=8.0.4
- prettytable >=2.5.0
- prompt_toolkit >=2
- pygments >=2.0.0
- requests >=2.20.0
- rich ==13.3.1
- urllib3 >=1.24
- click >=8.0.4 test
- coveralls * test
- mock * test
- prettytable >=2.5.0 test
- prompt_toolkit >=2 test
- pygments >=2.0.0 test
- pytest * test
- pytest-cov * test
- requests >=2.20.0 test
- rich >=12.3.0 test
- sphinx * test
- tox * test
- urllib3 >=1.24 test