@@ -0,0 +1,524 @@
+#! /usr/bin/python%0A# -*- coding:utf-8 -*-%0A%0A%22%22%22%0AAuthor: AsherYang%0AEmail:  ouyangfan1991@gmail.com%0ADate:   2018/6/24%0ADesc:   %E5%88%86%E5%B8%83%E5%BC%8FID%E7%94%9F%E6%88%90%E5%99%A8%0A%0A%E4%BD%BF%E7%94%A8 pysnowflake%0A%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99: https://www.cnblogs.com/galengao/p/5780519.html%0A%E6%9C%89%E9%81%93%E4%BA%91%E7%AC%94%E8%AE%B0: python pysnowflake %E7%94%9F%E6%88%90%E5%94%AF%E4%B8%80id%0A%22%22%22%0A%0Aimport snowflake.client%0A%0Ahost = '127.0.0.1'%0Aport = 58001%0A%0A%0Aclass GenerateIDUtil:%0A    def __init__(self):%0A        snowflake.client.setup(host, port)%0A%0A    def getUID(self):%0A        return snowflake.client.get_guid()%0A%0A    def getStatus(self):%0A        return snowflake.client.get_stats()%0A

generate uid util