Comments (20)
I like that:
pip install kubernetes
import kubernetes
v1 = kubernetes.CoreV1Api()
from python.
Just released "kubernetes" package in Pypi.
from python.
yeah, I think we should not upload it with our personal accounts, unless there is no other way. I will figure this out. Thanks.
from python.
@lavalamp Do you know what account we should use? Or do you know who we should ask?
from python.
Good question. I will have to ask around.
from python.
@sarahnovotny This sounds like something you (or the CNCF) could figure out?
from python.
@mbohlool, let's create a generic K8s account (named something appropriate to the pypi forum) and use that for any kubernetes-incubator or kubernetes project. Thanks for taking this on!
from python.
I've created an account on pypi, username: kubernetes. Will release the package there when we released 1.0. Also added this to umbrella issue #25
from python.
I will start releasing 0.1.0 version and upload it to pypi. We are going to follow semver.org versioning and major version 0 means development version and things may change without notice.
from python.
Any suggestion for pypi package name?
mine:
- kubernetes
- k8s-python-client
There are a number of packages with kubernetes name in them already exists: https://pypi.python.org/pypi?%3Aaction=search&term=kubernetes&submit=search
from python.
i prefer
k8s-python-client or kubernetes-python-client
from python.
I like kubernetes-python-client.
from python.
@sarahnovotny python can be inferred from the context right? can we call it k8s-client or kubernetes-client? or even without dash, k8sclient?
from python.
Or even just plain 'kubernetes'?
On Mon, Nov 21, 2016 at 3:34 PM, mbohlool [email protected] wrote:
@sarahnovotny https://github.com/sarahnovotny python can be inferred
from the context right? can we call it k8s-client or kubernetes-client? or
even without dash, k8sclient?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAngllTOTBtlPzk-2eEz-fJT9M7HV798ks5rAiqAgaJpZM4K25eQ
.
from python.
+1 to kubernetes :)
On Mon, Nov 21, 2016 at 6:11 PM, mbohlool [email protected] wrote:
I like that:
pip install kubernetes
import kubernetes
v1=kubernetes.CoreV1Api()—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB23mMjCXGFskXMZvzpFriAspo0Q2jdks5rAk9lgaJpZM4K25eQ
.
Yuvi Panda T
http://yuvi.in/blog
from python.
+1 for plain kubernetes
as well :)
from python.
ok, I've send the PR for changing name to kubernetes. Now that we are on the topic of naming, there is a utility package that I put all non-generated utilities such as load config, watch class, etc. I called it k8sutil. It could be kubernetes_util, k8s_util, etc. too. Any suggestion here?
from python.
imho it should be something like:
from kubernetes import k8sclient
from kubernetes import k8sutil
don't break up the client and the util into separate pypi's
from python.
Hmm, I may need to look at python packaging again. Right now, if you look at examples, we have k8sclient and k8sutil imported directly, and I assumed if I package it, it would work the same thus I renamed k8sclient. let me look into this. The plan is not to separate these to in two packages for sure.
from python.
I've did some digging and testing. Assuming python setup.py install is the way pip install packages (that I am 99% sure it is), we can achieve both options:
- No top level package:
import kubernetes
import k8sutil # or better name
k8sutil.load_kube_config()
v1 = kubernetes.CoreV1Api()
- A top level package called kubernetes then rename internal packages:
from kubernetes import client # or import kubernetes.client
from kubernetes import util # or import kubernetes.util
util.load_kube_config()
v1 = client.CoreV1Api()
Second option looks better to me, I need to do some restructuring but it should work.
from python.
Related Issues (20)
- Kubernetes connections using exec provided plugin commands fail if client ssl key and cert are not base64 encoded
- Support for Ephemeral Containers in Running Pods via Python Kubernetes Client 通过Python Kubernetes客户端在运行中的Pods里支持临时容器 HOT 6
- Is there any method to create service and deployment at the same time? HOT 1
- kubernetes.client.api.core_v1_api.delete_node_with_http_info deletes all nodes when `name` is an empty string. HOT 2
- What is the method to create a new resource type? HOT 5
- watch.Watch() - get only new events HOT 3
- Deprecation warning datetime.datetime.utcnow(). HOT 5
- Cannot list endpointslices using python kubernetes client HOT 8
- Mounting a Persistent Volume Claim as Volume within a Pod's Container spec doesn't seem to work. HOT 9
- ConfigExceptions aren't made visible HOT 3
- Test 1
- K8s Python interface issue HOT 2
- Manage resourceVersion to allow resilient restart of watch method HOT 2
- [stream/ws_client] Reading long stdout is truncated at 32768 chars HOT 3
- Request timeout in APIs HOT 9
- Watch() returns wrong "DELETED" event HOT 2
- Version 30.0? HOT 6
- Failed to create deployment HOT 2
- Kubernetes Async API Calls with Callbacks Support HOT 9
- How to get access to the slack channel? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.