
Z类分类_python包的使用
文章平均质量分 69
雪球干死黄旭东
这个作者很懒,什么都没留下…
展开
-
阿里云dataworks测试
参考文章:https://help.aliyun.com/zh/ram/user-guide/bind-a-dingtalk-account-to-a-ram-user。参考文章:https://help.aliyun.com/zh/maxcompute/user-guide/use-pyodps-in-dataworks。参考文章:https://help.aliyun.com/zh/maxcompute/user-guide/create-a-pyodps-3-node。原创 2024-10-10 16:33:27 · 1210 阅读 · 0 评论 -
python免安装版本使用方法(win环境下)
在同一业务多种不同的单机需求中,存在业务地单一电脑运行多个不同开发人员制作的python脚本,但是由于此前并未提前沟通,导致业务地存在多个python环境,使环境混乱,在保证本人开发的脚本能正常运行情况下同时不影响其他人脚本运行,所以需要独立的运行环境。免安装方法本身可以通过将一台机子安装好的python(干净的,未安装其他包)直接拷贝出来放到其他电脑中作为独立环境使用。也可以直接下载python官网本身提供的免安装版本。这里以使用官网提供的免安装版本为主。中查找有免安装版本的python。原创 2024-06-07 16:05:36 · 1042 阅读 · 0 评论 -
JupterLab使用记录
项目需求:需要构建一个多用户登陆服务器上测试代码更新代码功能。同时共用服务器环境且禁止修改服务器环境(任何需要更改,新增包需求需要通过服务器管理员更新,保证环境与生产环境一致,该服务器实际上是测试环境)初步设想:使用JupterLab作为核心服务,然后采用一个用户一个固定路径,采用路径分割的方式来限制用户。原创 2023-09-21 11:14:56 · 365 阅读 · 0 评论 -
elasticsearch使用记录
参考文章:https://elasticsearch-py.readthedocs.io/en/v8.8.2/参考文章:https。原创 2023-07-24 09:59:29 · 589 阅读 · 0 评论 -
uie-base使用记录(paddlenlp)
参考文章:https://aistudio.baidu.com/aistudio/modelsdetail?modelId=22参考文章:https://paddlenlp.readthedocs.io/zh/latest/FAQ.html参考文章:https://developer.aliyun.com/article/1066857。原创 2023-04-24 16:29:01 · 3779 阅读 · 1 评论 -
Nginx安装使用记录
参考文章:https://www.runoob.com/linux/nginx-install-setup.html系统平台:Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-146-generic x86_64)原创 2023-04-14 17:45:05 · 1189 阅读 · 0 评论 -
使用streamlit记录
官方网址:https://docs.streamlit.io/官方网址:https://discuss.streamlit.io/t/streamlit-components-community-tracker/4634官方网址:https://github.com/streamlit/streamlit第三方插件网址:https://github.com/arnaudmiribel/streamlit-extras。原创 2023-01-18 15:20:24 · 8244 阅读 · 3 评论 -
基于consul与FastAPI构建服务记录
consul相关原创 2022-07-15 11:22:13 · 2653 阅读 · 1 评论 -
GitPython
gitlab的简单使用原创 2022-06-30 14:33:58 · 274 阅读 · 0 评论 -
pyinstaller
参考文章:https://blog.youkuaiyun.com/qingfengxd1/article/details/115337556安装命令:pip install --upgrade pyinstaller==4.9然后在目标目录下打开cmd,输入Pyinstaller -F [文件绝对路径.py]打包完后会生成两个文件其中exe文件在dist里面。...原创 2022-03-02 09:51:29 · 427 阅读 · 0 评论 -
supervisor
原文连接:https://www.jianshu.com/p/ac6c84a2f415原文连接:https://blog.youkuaiyun.com/zou79189747/article/details/80403016原文连接:https://www.jianshu.com/p/0b9054b33db3官网:http://supervisord.org/github:https://github.com/Supervisor/supervisorSupervisor(http://supervisord原创 2021-10-14 09:10:07 · 880 阅读 · 0 评论 -
cx_Freeze
原文连接:https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python原文连接:https://cx-freeze.readthedocs.io/en/latest/setup_script.html原文连接:https://wiki.wxpython.org/cx_freeze在参考上述原文后,自己根据实际需求调整setup.py# -*- coding:utf-8 -*-# auth原创 2021-09-22 12:55:28 · 2000 阅读 · 0 评论 -
dubbo
# -*- coding:utf-8 -*-# author: cyz# time: 2021/8/20 15:04import os, syssys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))# os.chdir(os.path.dirname(os.path.abspath(__file__)))from datetime import datetimeimport telnet原创 2021-08-30 14:12:15 · 95 阅读 · 0 评论 -
kafka
# -*- coding:utf-8 -*-# author: cyz# time: 2021/1/28 17:51# https://github.com/dpkp/kafka-python# https://kafka-python.readthedocs.io/import os, syssys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))# os.chdir(os.path.di原创 2021-08-20 15:15:53 · 161 阅读 · 0 评论 -
futures/asyncio/multiprocess
import concurrent.futuresimport asyncio# async def insertAndUpdate(x):def insertAndUpdate(x): sql = text(''' INSERT INTO db_test.dw_org_addr_latest( `org_id` , -- '企业ID', `addr_type` , -- '地址用途(1-注册地 2-经营地-总原创 2021-05-26 16:56:01 · 139 阅读 · 0 评论 -
redis/rediscluster
【代码】redis/rediscluster。原创 2021-03-05 15:06:28 · 385 阅读 · 1 评论 -
hyperopt/hyperas
这篇文章所用的数据是以基于tushare数据多维度时间序列lstm预测股票价格为基础经行测试开发。整体架构与之前的一致。hyperoptHyperopt是一个Python库,用于在尴尬的搜索空间上进行串行和并行优化,搜索空间可能包括实值,离散和条件维。https://github.com/hyperopt/hyperopt# https://www.kaggle.com/wrosinsk...原创 2019-12-27 16:02:47 · 863 阅读 · 0 评论 -
GridSearchCV/RandomizedSearchCV
这篇文章所用的数据是以基于tushare数据多维度时间序列lstm预测股票价格为基础经行测试开发。整体架构与之前的一致。GridSearchCV + keras.wrappers.scikit_learn 的使用import pandas as pdimport numpy as npdef create_dataset(X,Y,window_size = 30,predict_si...原创 2019-12-27 14:43:13 · 747 阅读 · 0 评论 -
docxtpl/python-docx
基于docxtpl的自动化报告生成(基于word模板)在阅读这篇文章之前,可以去看我以前写过相似的自动化报告生成文章ps:以前在新浪博客写,然后各种被删贴后换过来这边了基于python-docx文本生成word文档 (http://blog.sina.com.cn/s/blog_1473990d60102x4fr.html)基于tushare文本生成word文档(http://blog.......原创 2019-11-26 15:08:01 · 10509 阅读 · 2 评论 -
numpy(不定时修改)
numpy.diffapi: https://docs.scipy.org/doc/numpy-1.9.0/reference/generated/numpy.diff.html差分相减,输出是out[n] = a[n+1] - a[n]Parametersdescribea : array_likeInput arrayn : int, optionalThe...原创 2019-06-04 15:00:06 · 242 阅读 · 0 评论 -
Geopandas
from shapely.geometry import Polygon, mappingimport geopandas as gpdfrom matplotlib import pyplot as pltimport pandas as pdpolys1 = gpd.GeoSeries([Polygon([(0,0), (2,0), (2,2), (0,2)]), ...原创 2019-06-03 20:26:29 · 1836 阅读 · 0 评论 -
SQLAlchemy
基于SQLAlchemy连接mysql库(pymsql插件)# -*- coding:UTF -8-*-import osimport pandas as pd# 检查是否有pymysql这个包存在import pymysql# SQLAlchemy本身无法操作数据库,其必须以来pymsql等第三方插件。from sqlalchemy import create_engine,Se...原创 2019-06-03 20:22:11 · 4607 阅读 · 1 评论