semvec/pypi-packages huggingface dataset:
Otpwd 0.0.6
Dynamic encryption software program

1.Functional description
	功能描述

	This is a Python program Dynamic Encryption Pack, password, the default daily updates, you can let the user focus on your daily send the password to get software use rights
	这是一个给python程序动态加密的包，密码默认每日更新，你可以让用户关注你，每日发送的密码，来获取软件使用权限的

2.Encryption method
	加密方式
	Gets the current is add a few months a couple of months and days in future, use md5 encryption, and take the encrypted string of 1 to 6 - bit
	获取当前是几月几日后将月与日相加，使用md5加密，并取加密后字符串的1到6位

3.method of application
	使用方法
-------------------------------	
	from otpwd.Otpwd import *
	epts=Ept()
	name=epts.main()
	if name=='vk':
		Your main program
-------------------------------
	You can modify otp. PY pwd_ functions to implement your own encryption method and algorithm, change the frequency of password changes ( the default ONE DAY AT A TIME )
	你可以通过修改Otpwd.py里的pwd_函数来实现自己的加密方式与算法，更改密码变动的频率（默认一天一次）
	
	You can comment out when used in otpwd. PY, line 19th print password
	正式使用时您可以将Otpwd.py第19行的打印密码注释掉
4.Required Module
	需要用到的模块
	import time
	import hashlib
	import tkinter
floryhugginsternary 0.0.0
package to find tie-lines, binodals and spinodals in a three-component mixture with flory-huggins free energy.
Requires Python: >=3.3

# samternary

`floryhugginsternary` aids users in predicting phase diagrams for three component mixtures of small molecules. It does this by providing the equations of chemical equilibrium (i.e. equal chemical potentials) in a form which is fairly straightforward to implement into a numerical solver (e.g. scipy.optimize.root or similar).

For example, if I wanted to determine the binodal and spinodal lines of a three component mixture with two phases when the volume fraction of component one in phase A (phi_1A in the code below) is 0.07, with flory huggins parameters chi_11 = 1, chi_22 = 1, and chi_12 = 4, I would write

`from floryhugginsternary.chemeq3 import ChemEq3_2phase`

`from scipy.optimize import root`

`ce = ChemEq3_2phase(phi_1A= 0.07,chi_12=3,chi_11=1,chi_22=-1)`

`phi_1B,phi_2A,phi_2B = 0.42,0.07,0.42 # a (good) guess for phi_2A, phi_1B, phi_2B`

`x0 = ce.phis_to_x(phi_1B,phi_2A,phi_2B)`

`solution = scipy.optimize.root(ce.rootfind_eqns,x0,jac=ch.rootfind_jacobian)`

`phi_1s,phi_2s = ce.get_phi1s_phi2s(solution.x) # get the volume fractions at phase coexistence`

`phi_1A,phi_1B = phi_1s[0],phi_1s[1]`

`phi_2A,phi_2B = phi_2s[0],phi_2s[1]`


which would, if a solution existed, return the volume fractions of the two different phases for both components A and B (otherwise it would just return the trivial solution of component one being equal in both phases and component two being equal in both phases).


See the examples folder for a list of examples on how to use this package. Here is an example picture of a binodal curve at chi_12 = 4, chi_11 = chi_22 = 1, with tie-lines. Also shown is the spinodal curve. This picture was computed using this package along with matplotlib and scipy.optimize.

![Binodal and spinodal curves at chi_12 = 4, chi_11 = chi_22 = 1.](/examples/example_chi_12_is4_chi_11ischi_22is1.png)