py3-softlayer

A set of Python libraries that assist in calling the SoftLayer API.

https://github.com/softlayer/softlayer-python

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

python softlayer

Keywords from Contributors

shellcodes docstring serializer packaging autograding embedded test-data-generator test-data faker-generator faker
Last synced: 6 months ago · JSON representation

Repository

A set of Python libraries that assist in calling the SoftLayer API.

Basic Info
Statistics
  • Stars: 150
  • Watchers: 35
  • Forks: 194
  • Open Issues: 20
  • Releases: 64
Topics
python softlayer
Created almost 16 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Security

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

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

All Time
  • Total Commits: 3,432
  • Total Committers: 123
  • Avg Commits per committer: 27.902
  • Development Distribution Score (DDS): 0.79
Past Year
  • Commits: 68
  • Committers: 5
  • Avg Commits per committer: 13.6
  • Development Distribution Score (DDS): 0.382
Top Committers
Name Email 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...

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
New Feature (75) Bug (52) CLI (37) Documentation (3) Core (1)
Pull Request Labels
CLI (81) dependencies (50) Core (36) Bug (33) Release (21) New Feature (20) Documentation (16) python (5) Storage (4) Internal (4) Ordering (2) API (1)

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

  • Versions: 99
  • Dependent Packages: 4
  • Dependent Repositories: 41
  • Downloads: 93,329 Last month
Rankings
Downloads: 1.0%
Dependent repos count: 2.3%
Dependent packages count: 2.4%
Average: 2.9%
Forks count: 3.4%
Stargazers count: 5.7%
Last synced: 7 months ago
alpine-v3.18: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 6.0%
Forks count: 7.0%
Stargazers count: 17.1%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.18: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 6.0%
Forks count: 7.0%
Stargazers count: 17.1%
Maintainers (1)
Last synced: 6 months ago
alpine-edge: py3-softlayer

library for SoftLayer's API

  • Versions: 18
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 6.0%
Forks count: 8.0%
Average: 8.1%
Stargazers count: 18.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.15: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 5.3%
Average: 8.4%
Stargazers count: 11.7%
Dependent packages count: 16.5%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.16: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 5.4%
Average: 9.2%
Stargazers count: 12.8%
Dependent packages count: 18.7%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.14: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 5.1%
Average: 9.3%
Stargazers count: 10.6%
Dependent packages count: 21.7%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.17: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 6.7%
Average: 10.3%
Stargazers count: 15.4%
Dependent packages count: 19.0%
Maintainers (1)
Last synced: 6 months ago
alpine-edge: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 14
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 8.3%
Average: 10.3%
Dependent packages count: 13.3%
Stargazers count: 19.6%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.22: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.22: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.20: py3-softlayer-pyc

Precompiled Python bytecode for py3-softlayer

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.20: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: py3-softlayer

library for SoftLayer's API

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Last synced: 6 months ago

Dependencies

.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/documentation.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
.github/workflows/release.yml actions
  • actions/checkout master composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish release/v1 composite
  • samuelmeuli/action-snapcraft v1.2.0 composite
.github/workflows/test_pypi_release.yml actions
  • actions/checkout master composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish master composite
.github/workflows/tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
docs/requirements.txt pypi
  • click *
  • prettytable *
  • rich *
  • sphinx *
  • sphinx-click *
setup.py pypi
  • click *
  • prettytable *
  • prompt_toolkit *
  • pygments *
  • requests *
  • rich *
  • urllib3 *
tools/requirements.txt pypi
  • 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
tools/test-requirements.txt pypi
  • 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
SoftLayer/CLI/config/setup.py pypi