You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarmsenv/bin/portpicker

16 lines
454 B

#!/home/patrickd/swarms/swarmsenv/bin/python3.12
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2018-2024 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pathos/blob/master/LICENSE
from pathos.portpicker import portnumber, __doc__
if __name__ == '__main__':
pick = portnumber(min=1024,max=65535)
print( pick() )