Giter Site home page Giter Site logo

Comments (20)

mbohlool avatar mbohlool commented on July 18, 2024 1

I like that:

pip install kubernetes
import kubernetes
v1 = kubernetes.CoreV1Api()

from python.

mbohlool avatar mbohlool commented on July 18, 2024 1

Just released "kubernetes" package in Pypi.

from python.

mbohlool avatar mbohlool commented on July 18, 2024

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.

mbohlool avatar mbohlool commented on July 18, 2024

@lavalamp Do you know what account we should use? Or do you know who we should ask?

from python.

lavalamp avatar lavalamp commented on July 18, 2024

Good question. I will have to ask around.

from python.

lavalamp avatar lavalamp commented on July 18, 2024

@sarahnovotny This sounds like something you (or the CNCF) could figure out?

from python.

sarahnovotny avatar sarahnovotny commented on July 18, 2024

@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.

mbohlool avatar mbohlool commented on July 18, 2024

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.

mbohlool avatar mbohlool commented on July 18, 2024

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.

mbohlool avatar mbohlool commented on July 18, 2024

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.

sarahnovotny avatar sarahnovotny commented on July 18, 2024

i prefer

k8s-python-client or kubernetes-python-client

from python.

mbohlool avatar mbohlool commented on July 18, 2024

I like kubernetes-python-client.

from python.

mbohlool avatar mbohlool commented on July 18, 2024

@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.

lavalamp avatar lavalamp commented on July 18, 2024

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.

yuvipanda avatar yuvipanda commented on July 18, 2024

+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.

danielfrg avatar danielfrg commented on July 18, 2024

+1 for plain kubernetes as well :)

from python.

mbohlool avatar mbohlool commented on July 18, 2024

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.

sebgoa avatar sebgoa commented on July 18, 2024

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.

mbohlool avatar mbohlool commented on July 18, 2024

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.

mbohlool avatar mbohlool commented on July 18, 2024

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:

  1. No top level package:
import kubernetes
import k8sutil # or better name

k8sutil.load_kube_config()
v1 = kubernetes.CoreV1Api()
  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.